eclipse-cdt-cloud / cdt-gdb-adapter

CDT GDB Debug Adapter
Eclipse Public License 2.0
28 stars 40 forks source link

Allow attaching (remote and local) with no program #262

Open jonahgraham opened 1 year ago

jonahgraham commented 1 year ago

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 commented 1 year ago

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

WyoTwT commented 10 months ago

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

jonahgraham commented 10 months ago

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

WyoTwT commented 10 months ago

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