From: Dave Korn <dave.korn.cygwin@googlemail.com>
To: loody <miloody@gmail.com>
Cc: Simon Richter <Simon.Richter@hogyros.de>, gdb@sourceware.org
Subject: Re: how to source level debug if I cannot see source embedded in elf file
Date: Tue, 24 Nov 2009 19:10:00 -0000 [thread overview]
Message-ID: <4B0AA02F.4010104@gmail.com> (raw)
In-Reply-To: <3a665c760911221602y6ff771bdlbccdd27dc9fc0012@mail.gmail.com>
loody wrote:
> mipsel-unknown-elf-ld -T ./link.xn -o TestCode.elf -Map TestCode.map
> --oformat elf32-littlemips init.o reset.o atexit.o main.o -static
> -nostdlib -L/media/sdb1/newlib-1.17.0/build/mipsel/lib
> -L/root/bare_metal/x-tools/mipsel-unknown-elf/lib/gcc/mipsel-unknown-elf/4.2.4
> -lc -lnullmon -lgcc
Is your linker script discarding the debug info sections? Look at "objdump
-h" of TestCode.elf and of one of the .o files for comparison; if the .o files
have debug info sections but not the .elf, the problem is probably there.
cheers,
DaveK
prev parent reply other threads:[~2009-11-23 14:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-23 0:04 loody
2009-11-23 12:43 ` Simon Richter
2009-11-23 14:31 ` loody
2009-11-24 19:10 ` Dave Korn [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B0AA02F.4010104@gmail.com \
--to=dave.korn.cygwin@googlemail.com \
--cc=Simon.Richter@hogyros.de \
--cc=gdb@sourceware.org \
--cc=miloody@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox