Skip to content

Instantly share code, notes, and snippets.

@KevinKu
Created September 15, 2016 13:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save KevinKu/f9d859eade4d848dd084e2d0bc828c8e to your computer and use it in GitHub Desktop.
Save KevinKu/f9d859eade4d848dd084e2d0bc828c8e to your computer and use it in GitHub Desktop.
import gdb
import string
class test_gdb_python_command(gdb.Command):
"test help"
def __init__(self):
super(test_gdb_python_command,self).__init__("test_gdb_python_command",gdb.COMMAND_USER)
def invoke(self,arg,from_tty):
print("gdb test")
test_gdb_python_command()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment