Add debug rule.
authorRichard W.M. Jones <rjones@redhat.com>
Fri, 25 Oct 2019 12:34:48 +0000 (13:34 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Fri, 25 Oct 2019 17:16:47 +0000 (18:16 +0100)
Makefile

index 611a5ea..c8fd2ee 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -15,4 +15,11 @@ runbochs: pyrit.img
 dis: pyrit.img
        objdump -D -b binary -m i8086 $<
 
+debug: pyrit.img
+       qemu-system-i386 -S -s -fda $< &
+       gdb -ex "target remote tcp::1234" \
+           -ex "set architecture i8086" \
+           -ex "break *0x7c00" \
+           -ex "cont"
+
 .PHONY: run runbochs