[U-Boot-Users] 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:2001 0xfff00100 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.

In message 20040716165304.5752.qmail@web50503.mail.yahoo.com 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

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.0 ppc_8xx: Build 2004-02-16
and have no other problems.
May be I am missing something real basic ?
KS --- Wolfgang Denk wd@denx.de wrote:
In message 20040716165304.5752.qmail@web50503.mail.yahoo.com 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
participants (2)
-
Knowledge Seeker
-
Wolfgang Denk