Skip to content

Latest commit

 

History

History
15 lines (12 loc) · 443 Bytes

gdb-cheat-sheet.md

File metadata and controls

15 lines (12 loc) · 443 Bytes

gdb

  1. layout asm - see program instruction in visual pretty mode
  2. watch - to print var after it was changed
  3. -tui - switch to graphical mode
  4. define hook-stop - execute after every command set of commands

Some Tricks

https://blogs.oracle.com/linux/8-gdb-tricks-you-should-know-v2

Get table with syscalls:

cat linux/arch/x86/entry/syscalls/syscall_64.tbl
echo -n "#include <sys/syscall.h>\nSYS_read" | gcc -E -