**s.

.

$ ./qemu-system-arm -M raspi2 -kernel ../../u-boot/u-boot -s -S

.

.

root@fb644483bf93:/home/iamroot/u-boot# gdb-multiarch u-boot
GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1
Copyright (C) 2014 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 "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from u-boot...done.
(gdb) target remote:1234
Remote debugging using :1234
warning: Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code.
_start () at arch/arm/lib/vectors.S:54
54              b       reset
(gdb)

.

.

.

(gdb) b relocate_code
Breakpoint 1 at 0x8bfc: file arch/arm/lib/relocate.S, line 82.
(gdb) c
Continuing.

Breakpoint 1, relocate_code () at arch/arm/lib/relocate.S:82
82              subs    r4, r0, r1              /* r4 <- relocation offset */
(gdb) i r r0
r0             0x3bf41000       1005850624
(gdb) add-symbol-file u-boot 0x3bf41000
add symbol table from file "u-boot" at
        .text_addr = 0x3bf41000
(y or n) y
Reading symbols from u-boot...done.
(gdb) b board_init_r
Breakpoint 2 at 0x174fc: board_init_r. (2 locations)
(gdb) c
Continuing.

Breakpoint 2, board_init_r (new_gd=0x3bb3cee8, dest_addr=1005850624)
    at common/board_r.c:976
976     {
(gdb)

.

.

results matching ""

    No results matching ""