added an example to debug 64bit code in gdb (QEmu is buggy when switching from 32 to 64bit code)

This commit is contained in:
Steffen Vogel 2013-10-16 15:13:04 +02:00
parent db21f7cf05
commit 5ab075df9b

View file

@ -1,7 +1,14 @@
# Constant part of the script
set disassembly-flavor intel
symbol-file metalsvm.sym
target remote localhost:1234
# Configure breakpoints and everything as you wish here.
break main
# Debugging 32bit code
#set architecture i386
#break stublet
#continue
# Debugging 64bit code
#set architecture i386:x86-64
#break main
continue