diff options
author | Zachary Yedidia <zyedidia@gmail.com> | 2022-05-03 15:56:41 -0700 |
---|---|---|
committer | Zachary Yedidia <zyedidia@gmail.com> | 2022-05-03 15:56:41 -0700 |
commit | 4413faf9fbb97aa20b5cddf25aee83dabcea6612 (patch) | |
tree | 1a3c252a1191a3403b27f77bb3cb687315b17385 | |
parent | c987e428d62e95bf39685dfa6c1633d9c9291f38 (diff) |
Add qemu-gdb target
-rw-r--r-- | defs.mk | 1 | ||||
-rw-r--r-- | prog/hello/Makefile | 4 |
2 files changed, 5 insertions, 0 deletions
@@ -9,6 +9,7 @@ OBJDUMP = $(PREFIX)-objdump QEMU = qemu-system-arm BOARD = raspi1ap +GDB = gdb-multiarch LIBGCC = $(shell $(CC) --print-file-name=libgcc.a) diff --git a/prog/hello/Makefile b/prog/hello/Makefile index 72c9b00..0a45280 100644 --- a/prog/hello/Makefile +++ b/prog/hello/Makefile @@ -29,4 +29,8 @@ format: qemu: $(PROG).elf $(QEMU) -M $(BOARD) -nographic -kernel $< -serial null -serial mon:stdio -no-reboot +qemu-gdb: $(PROG).elf + $(QEMU) -s -S -M $(BOARD) -nographic -kernel $< -serial null -serial mon:stdio -no-reboot & + $(GDB) -x start.gdb + .PHONY: format clean all install qemu |