1 # Initialisation script for GDB to help debugging the Haiku ARM port with qemu.
2 # Setup the gdbinit from reverse.put.as, then run gdb -x thisscript from the
3 # generated dir. This will set everything up for you so you can start debugging
6 # Needs http://reverse.put.as/gdbinit/
10 # Show context on events
13 # Below are regular gdb commands (no need for that funky gdbinit script!)
16 target remote localhost:1234
18 # Show readable C++ symbols in asm listings
19 set print asm-demangle on
21 # Load the bootloader symbols so we can see what we're doing
22 symbol-file objects/haiku/arm/release/system/boot/boot_loader_u-boot
24 # Set a breakpoint at our entry point, so we can watch things roll after the
25 # boring part of u-boot loading everything in RAM