Skip to content

Instantly share code, notes, and snippets.

@izabera
Created May 25, 2018 19:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save izabera/386bffeeefced613e6cc60a9964e783a to your computer and use it in GitHub Desktop.
Save izabera/386bffeeefced613e6cc60a9964e783a to your computer and use it in GitHub Desktop.
file /bin/true
b main
r
import gdb
def stop_handler(arg):
print('hello')
gdb.events.stop.connect(stop_handler)
define hook-stop
python
print("hello")
end
end
file /bin/true
b main
r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment