cdt-gdb-adapter
cdt-gdb-adapter copied to clipboard
Allow attaching (remote and local) with no program
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
It looks like the new tests don't work on Windows, some additional work needed there.
This is a useful PR as I have a need for this functionality. Thank you
@WyoTwT if you can review this change and see if anything is missing, please let me know.
This PR looks good to me. Our tree has some minor differences but they're specific to our implementation.