-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathgdbinit
More file actions
26 lines (21 loc) · 746 Bytes
/
gdbinit
File metadata and controls
26 lines (21 loc) · 746 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
set remotetimeout 99999
target remote :1234
source ./gdb.py
add-symbol-file ./arm-trusted-firmware/build/qemu/debug/bl1/bl1.elf
b bl1_main
add-symbol-file ./arm-trusted-firmware/build/qemu/debug/bl2/bl2.elf
b bl2_main
add-symbol-file ./arm-trusted-firmware/build/qemu/debug/bl31/bl31.elf
b bl31_main
# uboot map offset is given by TF-A during the boot:
# INFO: BL31: Preparing for EL3 exit to normal world
# INFO: Entry point address = 0x60000000
add-symbol-file ./u-boot/u-boot 0x60000000
b board_init_f
# https://github.com/u-boot/u-boot/blob/master/doc/README.arm-relocation
# => bdinfo
# relocaddr = 0x000000023f6b6000
add-symbol-file ./u-boot/u-boot.relocated 0x000000023f6b6000
add-symbol-file ./linux/vmlinux
b start_kernel
c