[U-Boot] Hidden BPs i gdb

Joakim Tjernlund joakim.tjernlund at transmode.se
Thu May 31 11:02:58 CEST 2012


Just stumbled on a (mis) feature in gdb that I figured u-boot devs should know about:

powerpc-softfloat_4.5.3-linux-gnu-gdb u-boot
GNU gdb (Gentoo 7.4 p1) 7.4
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=i686-pc-linux-gnu --target=powerpc-softfloat_4.5.3-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.gentoo.org/>...
Reading symbols from /usr/local/src/kenth_uboot.git/u-boot...done.
(gdb) tar rem bdi:2001
Remote debugging using bdi:2001
_start_cont () at start.S:779
779		lis	r1,CONFIG_SYS_INIT_RAM_ADDR at h
(gdb) maintenance info breakpoints
Num     Type           Disp Enb Address    What
-1      shlib events   keep y   0xeff80000 <_start> inf 1
(gdb)

Notice the hidden BP gdb adds, this will mess stuff up(consuming a HW BPs or
accessing memory that isn't there yet).

Surf into the gdb mailing list for details, so far this is considered a feature.

  Jocke

PS.
  The same happens with vmlinux




More information about the U-Boot mailing list