Skip to content

Instantly share code, notes, and snippets.

@AdityaChaudhary
Forked from KrE80r/gdb hook-stop
Created July 2, 2019 05:12
Show Gist options
  • Save AdityaChaudhary/87b91824c8f8db72d9c70a88bb25bec4 to your computer and use it in GitHub Desktop.
Save AdityaChaudhary/87b91824c8f8db72d9c70a88bb25bec4 to your computer and use it in GitHub Desktop.
32bit
set disassembly-flavor intel
define hook-stop
info registers
x/24wx $esp
x/5i $eip
end
64bit
set disassembly-flavor intel
define hook-stop
info registers
x/24wx $rsp
x/5i $rip
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment