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 4# right away. 5 6# Needs http://reverse.put.as/gdbinit/ 7 8# Set ARM mode 9arm 10# Show context on events 11context-on 12 13# Below are regular gdb commands (no need for that funky gdbinit script!) 14 15# Connect to qemu 16target remote localhost:1234 17 18# Show readable C++ symbols in asm listings 19set print asm-demangle on 20 21# Load the bootloader symbols so we can see what we're doing 22symbol-file objects/haiku/arm/release/system/boot/boot_loader_u-boot 23 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 26break *0x80008008 27 28continue 29