gcc-newbies-guide icon indicating copy to clipboard operation
gcc-newbies-guide copied to clipboard

Debugging without using -wrapper

Open davidmalcolm opened this issue 1 year ago • 0 comments

The debugging page mentions -wrapper, but maybe we should document the other way of debugging gdb: passing in -v, and then looking for the line that invokes cc1 (or whatever), as per https://gcc-newbies-guide.readthedocs.io/en/latest/binaries-and-processes.html

Once you've got that command line (usually long and complicated), you can run it under gdb directly via:

gdb --args COMMAND LINE ARGS GO HERE

davidmalcolm avatar May 21 '24 22:05 davidmalcolm