pass the gdb init file explicitly where needed (gba debug rule)
authorJohn Tsiombikas <nuclear@member.fsf.org>
Fri, 7 Oct 2022 17:07:31 +0000 (20:07 +0300)
committerJohn Tsiombikas <nuclear@member.fsf.org>
Fri, 7 Oct 2022 17:07:31 +0000 (20:07 +0300)
.gdbinit [deleted file]
Makefile
gdbmgba [new file with mode: 0644]

diff --git a/.gdbinit b/.gdbinit
deleted file mode 100644 (file)
index f4d7543..0000000
--- a/.gdbinit
+++ /dev/null
@@ -1 +0,0 @@
-target remote localhost:2345
index 32cfd0f..8b1d20f 100644 (file)
--- 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 (file)
index 0000000..f4d7543
--- /dev/null
+++ b/gdbmgba
@@ -0,0 +1 @@
+target remote localhost:2345