From 07b100da6c003ee699ae0b27c0103ce4d9563817 Mon Sep 17 00:00:00 2001 From: Henry Eklind Date: Fri, 3 May 2024 10:37:53 +0200 Subject: [PATCH] debug.gdb: add userland symbols in runtime Right now the offset is hard-coded until we can figure out why the 0x30 offset exists. --- debug.gdb | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/debug.gdb b/debug.gdb index 07b16ca..c29c914 100644 --- a/debug.gdb +++ b/debug.gdb @@ -6,11 +6,16 @@ source ../gef/gef.py source ../gdb-pt-dump/pt.py gef-remote --qemu-user localhost 1234 + # Any break points should be set here. -# break main break enter_userland -break *(enter_userland+65) -break yay_userland +commands + # TODO: hard-coded userland entrypoint. But _sooo_ good for debugging. + add-symbol-file bin/userland.elf 0xa0300000+0x30 + break elf_userland + continue +end +break syscall_landing_pad # Run until the program first breakpoint. continue