This is the mail archive of the gdb@sourceware.org mailing list for the GDB 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: how to source level debug if I cannot see source embedded in elf file


Hi,

On Mon, Nov 23, 2009 at 01:03:36AM +0800, loody wrote:

> If my tool chain cannot generate elf file without source embedded even
> I compile them with "-g", can I do the source level debugging?

That assembler dump appears to be from a fully linked file, so I'd
suspect the debug info is stripped at link time. Have you passed the -g
option to the link step as well?

   Simon


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