cdt-gdb-adapter
cdt-gdb-adapter copied to clipboard
break at main option when launching
CDT (Eclipse IDE version) has a "break at main" (with a configurable symbol) option. GDB itself has a start method that will do that functionality automatically and can be accessed via MI with -exec-run --start.
This is a feature request to add that.
In the meantime the workaround is "initCommands": ["tbreak main"] for launch scenario.
To mimic the CDT option I'd suggest a dual setting (can be boolean or string):
stopAtEntry (that's actually what native.debug has) or breakAtMain (to swap over the old label). if true -> run with --start, if false (possibly the default) without, if a string: issue -break-insert -t $entry.