This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: how to source level debug if I cannot see source embedded in elf file
- From: Simon Richter <Simon dot Richter at hogyros dot de>
- To: loody <miloody at gmail dot com>
- Cc: gdb at sourceware dot org
- Date: Sun, 22 Nov 2009 18:16:17 +0100
- Subject: Re: how to source level debug if I cannot see source embedded in elf file
- References: <3a665c760911220903y352e7062m2acfd5fb27a1b169@mail.gmail.com>
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