From: Richard W.M. Jones Date: Fri, 25 Oct 2019 12:34:48 +0000 (+0100) Subject: Add debug rule. X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=b11b07c1a12de922ad863018efb33fec0c975253;p=pyrit.git Add debug rule. --- diff --git a/Makefile b/Makefile index 611a5ea..c8fd2ee 100644 --- 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