RE: [U-Boot-Users] My problem with gdb !

Hello, I am using 'DULG document'. My work environment in brief: BDI2000, ARM11 based board with flash memory, RedHat Linux-8.0 host machine etc. After compiling the source of u-boot, I got u-boot.bin and u-boot images. Using u-boot.bin image, I reprogrammed flash memory through serial port. Using u-boot image, I started debugging.
[ravi@localhost u-boot-arm11]$ arm-linux-gdb u-boot GNU gdb 6.1 Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "--host=i686-pc-linux-gnu --target=arm-linux"... (gdb) target remote bdi:2001 Remote debugging using bdi:2001 0x48000000 in ?? () (gdb) b cpu_init Breakpoint 1 at 0x80e811c4: file cpu.c, line 93. (gdb) c Continuing.
I waited for about 20 mintes. No response. I was expecting the breakpoint to hit as explained in 'DULG document' section "10.1.1 Debugging of U-Boot Before Relocation". Please suggest me what could be the problem. I have tested the communication with BDI2000 from the host machine using 'ftp' and 'telnet' commands. It's OK.
Thanks A Lot, Ravi

Dear Ravi,
in message 93AC2F9171509C4C9CFC01009A820FA001C003D8@blr-ec-msg05.wipro.com you wrote:
[ravi@localhost u-boot-arm11]$ arm-linux-gdb u-boot
...
(gdb) target remote bdi:2001 Remote debugging using bdi:2001 0x48000000 in ?? ()
As you can see here, this is not the reset entry point (0x0000). Obviously, the board has been already running some or maybe even many instructions before it was stopped by the BDI2000.
Check your BDI2000 config file, and check the BDI's runmode.
(gdb) b cpu_init Breakpoint 1 at 0x80e811c4: file cpu.c, line 93. (gdb) c Continuing.
I waited for about 20 mintes. No response. I was expecting the breakpoint to hit as explained in 'DULG document' section "10.1.1
Probably the function cpu_init() was never reached. Either it was executed long ago before you attached to the BDI2000, or the board crashed before reaching it.
Simply pressing "^C" in GDB will interrupt execution and give you a chance to find out where the program is running and what it is currently doing. Also, performing a "mon reset", "mon go" sequence is probably a good idea as this will allow you to start from a defined state.
Best regards,
Wolfgang Denk
participants (2)
-
ravi.aloor@wipro.com
-
Wolfgang Denk