gdb.gdb 465 B

1234567891011121314151617181920212223242526272829
  1. target remote localhost:1234
  2. set architecture i8086
  3. # These would be possible. But they break the UI too much...
  4. #layout asm
  5. #layout regs
  6. define hook-stop
  7. info registers
  8. printf "\n"
  9. x/16i $pc - 8
  10. printf "\n"
  11. end
  12. break *0x7c00
  13. continue
  14. # Magic address. Add a:
  15. #
  16. # mov %ax, 0x9000
  17. #
  18. # to your program to break there. Shortcut macro on common.h:
  19. #
  20. # DBG
  21. awatch *0x9000
  22. commands
  23. silent
  24. printf "0x9000 awatch access debug break\n"
  25. end