how to source level debug if I cannot see source embedded in elf file
Dave Korn
dave.korn.cygwin@googlemail.com
Tue Nov 24 19:10:00 GMT 2009
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
More information about the Gdb
mailing list