Using ELF File in gdb
Wolfgang,
Regarding my problem of gdb not finding certain source file (debugging u-boot remotely) which I posted few days ago. You suggested to use ELF binary in ddd (ppc_8xx-gdb).
what would be the sequence of steps.
I try following
GNU DDD 3.3.1 (i686-pc-linux-gnu), by Dorothea L(gdb) file /sw/bootcode/u-boot-1.1.1/u-boot
(gdb) Function "" not defined.
(gdb) target remote bdi:20010xfff00100 in ?? ()
(gdb) set $pc = 0x02000100
(gdb) break start.S:574
Breakpoint 1 at 0x2002324: file /sw/bootcode/u-boot-1.1.1/cpu/mpc8xx/start.S, line 574. (gdb) break fec.c:212
Breakpoint 2 at 0x2017640: file fec.c, line 212. (gdb) stepi
(gdb) cont
It still has problem finding fec.c, serial.c files.
Quoted 6 lines · In message <[email protected]> you wrote:
Regarding my problem of gdb not finding certain source file (debugging u-boot remotely) which I posted few days ago. You suggested to use ELF binary in ddd (ppc_8xx-gdb).
what would be the sequence of steps.
Maybe you explain which part of the documentation
(http://www.denx.de/twiki/bin/view/DULG/DebuggingUBoot) you don't understand.
Best regards,
Wolfgang Denk
Signature · 4 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de Consultants are mystical people who ask a company for a number and then give it back to them.
Wolfgang,
- I understand issue about debugging after code has been relocated
- I can successfully single step, next, cont, before code relocation
- I can successfully single step, next, cont, after code is relocated (to following extend)
But when code is executing from serial.c file, gdb gets confused. I have started ddd as (among other variations)
ddd --debugger /opt/eldk/usr/bin/ppc_8xx-gdb u-boot
But still when it gets to serial.c (actually it may be b4 it gets there) it does not know where is serial.c is located. It is looking in / (i.e. u-boot-1.1.1)
Other time if I try to set break point in file e.g. ./common/env_dataflash.c, gdb does not know where to find it.
I have tried using dir command, with no affect.
I am using
ELDK version 3.0ppc_8xx: Build 2004-02-16
and have no other problems.
May be I am missing something real basic ?
KS
Quoted 14 lines · --- Wolfgang Denk
In message <[email protected]> you
Quoted 6 lines · wrote:
Regarding my problem of gdb not finding certain source file (debugging u-boot remotely) which I posted few days ago. You suggested to use ELF binary in ddd (ppc_8xx-gdb)
what would be the sequence of steps.
Maybe you explain which part of the documentation
(http://www.denx.de/twiki/bin/view/DULG/DebuggingUBoot) you don't understand.
Best regards,
Wolfgang Denk