2015-10-20 12:21:22 +02:00
|
|
|
target remote localhost:1234
|
|
|
|
|
set architecture i8086
|
|
|
|
|
# These would be possible. But they break the UI too much...
|
|
|
|
|
#layout asm
|
|
|
|
|
#layout regs
|
|
|
|
|
|
|
|
|
|
define hook-stop
|
|
|
|
|
info registers
|
|
|
|
|
printf "\n"
|
|
|
|
|
x/16i $pc - 8
|
|
|
|
|
printf "\n"
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
break *0x7c00
|
|
|
|
|
continue
|
|
|
|
|
|
2015-11-08 11:45:40 +01:00
|
|
|
# Magic address. Add a:
|
2018-05-06 14:33:33 +01:00
|
|
|
#
|
|
|
|
|
# mov %ax, 0x9000
|
|
|
|
|
#
|
|
|
|
|
# to your program to break there. Shortcut macro on common.h:
|
|
|
|
|
#
|
|
|
|
|
# DBG
|
2015-10-20 12:21:22 +02:00
|
|
|
awatch *0x9000
|
|
|
|
|
commands
|
2018-05-06 14:33:33 +01:00
|
|
|
silent
|
|
|
|
|
printf "0x9000 awatch access debug break\n"
|
2015-10-20 12:21:22 +02:00
|
|
|
end
|