add debug make

This commit is contained in:
ridethepig 2022-09-16 18:00:34 +08:00
parent 5a65458c56
commit 2de34a7fdf

View File

@ -16,4 +16,8 @@ run: compile
clean:
rm boot.bin
.PHONY: compile clean run
debug: compile
$(QEMU) -boot order=c -drive file=$(IMG),format=raw -S -s &
gdb -ex 'set tdesc filename target.xml' -ex 'target remote localhost:1234'
.PHONY: compile clean run debug