Skip to content
Snippets Groups Projects
Commit 7f097cba authored by Avi Kivity's avatar Avi Kivity
Browse files

scripts: convert gdb script to python

gives more power and is more maintainable
parent d55363ea
No related branches found
No related tags found
No related merge requests found
set confirm off
add-symbol-file /usr/lib/jvm/java-1.7.0-openjdk.x86_64/jre/lib/amd64/server/libjvm.so 0x100000195410
set confirm on
define connect
target remote :1234
end
#!/usr/bin/python
import gdb
gdb.execute('add-symbol-file /usr/lib/jvm/java-1.7.0-openjdk.x86_64/jre/lib/amd64/server/libjvm.so 0x100000195410')
class Connect(gdb.Command):
'''Connect to a local kvm instance at port :1234'''
def __init__(self):
gdb.Command.__init__(self,
'connect',
gdb.COMMAND_NONE,
gdb.COMPLETE_NONE)
def invoke(self, arg, from_tty):
gdb.execute('target remote :1234')
Connect()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment