This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Using Binutils to view source code?


Hi James,

> >The "objdump" program can do this.  Try using the "-dS" switches.
> 
> Thanks - This only shows the assembly code though?

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.

Cheers
        Nick






Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]