Skip to content

Commit

Permalink
debug.gdb: add userland symbols in runtime
Browse files Browse the repository at this point in the history
Right now the offset is hard-coded until we can figure out why the 0x30
offset exists.
  • Loading branch information
karlek committed May 3, 2024
1 parent 9893e14 commit 07b100d
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions debug.gdb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 07b100d

Please sign in to comment.