Debugging with gdb on macOS Sierra [message #1766814] |
Tue, 27 June 2017 10:02  |
Eclipse User |
|
|
|
I found this earlier thread about debugging with CDT on macOS Sierra:
https://www.eclipse.org/forums/index.php?t=msg&th=1083362&goto=1750664&#msg_1750664
It points to https://bugs.eclipse.org/bugs/show_bug.cgi?id=509737, which is resolved in CDT 9.2.1 if I understand it correctly. I'm not seeing the problem described in the bug report, but I have different symptom that prevents debugging with gdb.
I have the following environment:
- Eclipse Neon.3, which comes with CDT 9.2.1
- Xcode 8.3.3
- gdb 7.12.1 from MacPorts, installed as /opt/local/bin/ggdb, codesigned
I followed the recommendation from various places to put "set startup-with-shell off" into my .gdbinit file (found here: https://stackoverflow.com/questions/43188431/gdb-on-macos-sierra-10-12-4).
With this setup I can successfully debug C programs with gdb's command line interface.
When I try to use this gdb from Eclipse CDT, the application to debug is launched successfully, but apparently it doesn't see any of the command line arguments that I have applied in the "Program arguments" window in the run configuration. It will always display its usage message, as if no arguments were supplied on the command line
Is this a known issue, and is there a workaround?
Thanks
Stephan
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03057 seconds