I would like to extend the debugger of eclipse cdt so that it is able to skip lines with a specified line number by default (step).
I was wondering what could be extended to do so, because I don't need to write a complete new debugger, the c/c++ functionallity is as good as it is.
This is a very broad question, so I provide some starting points for you so you can narrow down your question a bit.
The C/C++ Debugger in Eclipse is provided by CDT's DSF (Debug Services Framework). DSF is an amazing, but complicated asynchronous framework to write debuggers in. DSF-GDB is the implementation of DSF for GDB debuggers.
int x = 2
x++;
x++;
and expect to be able to run line 1 and 3 and skip 2, then you are going to have to get involved with the compiler, not just the debugger as the compiler will normally optimize the above to essentially int x = 4
.
The CDI Debugger, aka the older pre-DSF CDT debugger is expected to be removed in CDT 9.0 scheduled for release in June 2016. The CDI Debugger is associated with the org.eclipse.cdt.debug.core.CDebugger
extension point. See the message from the CDT co-leads Marc and Doug and the wiki entry. Therefore do not base new development work on CDI.