cdt-gdb-adapter icon indicating copy to clipboard operation
cdt-gdb-adapter copied to clipboard

Allow attaching (remote and local) with no program

Open jonahgraham opened this issue 1 year ago • 4 comments

There is no strict need to have a program passed to GDB when attaching (remote or local). Either the program can be downloaded from the remote or otherwise read by GDB, or if not possible then GDB can do symbol-free debugging.

Previously in #228 some work was done to better error when program was not specified. This change loosens the restrictions slightly. If the program is not specified, it is still a warning in VSCode because of package.json

See this comment for how it is presented to a user: https://github.com/eclipse-cdt-cloud/cdt-gdb-adapter/issues/261#issuecomment-1505209833

Part of #261

jonahgraham avatar Apr 13 '23 13:04 jonahgraham

It looks like the new tests don't work on Windows, some additional work needed there.

jonahgraham avatar Apr 13 '23 21:04 jonahgraham

This is a useful PR as I have a need for this functionality. Thank you

WyoTwT avatar Oct 26 '23 16:10 WyoTwT

@WyoTwT if you can review this change and see if anything is missing, please let me know.

jonahgraham avatar Oct 26 '23 16:10 jonahgraham

This PR looks good to me. Our tree has some minor differences but they're specific to our implementation.

WyoTwT avatar Oct 30 '23 14:10 WyoTwT