Using Binutils to view source code?

James Sampson
Mon Jan 27 07:17:00 GMT 2003

>Actually the 'S' part of '-dS' will make objdump try to show the
>source code interleaved with the disassembly.  The problem is that it
>does not, currently, support all debug formats.
>If you find that it does not work for your binaries, try changing
>debug format.  (eg compiling with -gstabs).  This may work.

Thanks :-)

I noticed that the source file needed to be in the same dir for it to use it.

Best Regards

More information about the Binutils mailing list