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