From b11b07c1a12de922ad863018efb33fec0c975253 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Fri, 25 Oct 2019 13:34:48 +0100 Subject: [PATCH] Add debug rule. --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- 1.8.3.1