added an example to debug 64bit code in gdb (QEmu is buggy when switching from 32 to 64bit code)
This commit is contained in:
parent
db21f7cf05
commit
5ab075df9b
1 changed files with 9 additions and 2 deletions
11
script.gdb
11
script.gdb
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue