From 0c66734e4da3cdd60a0552014b0f46275a358796 Mon Sep 17 00:00:00 2001 From: PulkoMandy Date: Fri, 13 Jun 2014 20:13:59 +0200 Subject: [PATCH] Add a small helper script to configure gdb This is useful for debugging the ARM port with qemu gdb stub. --- 3rdparty/pulkomandy/haiku_arm_qemu_gdb | 28 ++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 3rdparty/pulkomandy/haiku_arm_qemu_gdb diff --git a/3rdparty/pulkomandy/haiku_arm_qemu_gdb b/3rdparty/pulkomandy/haiku_arm_qemu_gdb new file mode 100644 index 0000000000..3b539bed4b --- /dev/null +++ b/3rdparty/pulkomandy/haiku_arm_qemu_gdb @@ -0,0 +1,28 @@ +# Initialisation script for GDB to help debugging the Haiku ARM port with qemu. +# Setup the gdbinit from reverse.put.as, then run gdb -x thisscript from the +# generated dir. This will set everything up for you so you can start debugging +# right away. + +# Needs http://reverse.put.as/gdbinit/ + +# Set ARM mode +arm +# Show context on events +context-on + +# Below are regular gdb commands (no need for that funky gdbinit script!) + +# Connect to qemu +target remote localhost:1234 + +# Show readable C++ symbols in asm listings +set print asm-demangle on + +# Load the bootloader symbols so we can see what we're doing +symbol-file objects/haiku/arm/release/system/boot/boot_loader_u-boot + +# Set a breakpoint at our entry point, so we can watch things roll after the +# boring part of u-boot loading everything in RAM +break *0x80008008 + +continue