From d985165d0e156c785895a5272113ff477bebeeb8 Mon Sep 17 00:00:00 2001 From: John Tsiombikas Date: Fri, 7 Oct 2022 20:07:31 +0300 Subject: [PATCH 1/1] pass the gdb init file explicitly where needed (gba debug rule) --- .gdbinit | 1 - Makefile | 7 ++++++- gdbmgba | 1 + 3 files changed, 7 insertions(+), 2 deletions(-) delete mode 100644 .gdbinit create mode 100644 gdbmgba diff --git a/.gdbinit b/.gdbinit deleted file mode 100644 index f4d7543..0000000 --- a/.gdbinit +++ /dev/null @@ -1 +0,0 @@ -target remote localhost:2345 diff --git a/Makefile b/Makefile index 32cfd0f..8b1d20f 100644 --- a/Makefile +++ b/Makefile @@ -100,7 +100,7 @@ run: $(bin) .PHONY: debug debug: $(elf) mgba -2 -g $(bin) & - $(TCPREFIX)gdb $< + $(TCPREFIX)gdb -x gdbmgba $< .PHONY: disasm disasm: $(elf) @@ -111,3 +111,8 @@ libs: $(libs) libs/maxmod/libmm.a: $(MAKE) -C libs/maxmod + + +.PHONY: pc +pc: + $(MAKE) -f Makefile.pc diff --git a/gdbmgba b/gdbmgba new file mode 100644 index 0000000..f4d7543 --- /dev/null +++ b/gdbmgba @@ -0,0 +1 @@ +target remote localhost:2345 -- 1.7.10.4