From: John Tsiombikas Date: Fri, 7 Oct 2022 17:07:31 +0000 (+0300) Subject: pass the gdb init file explicitly where needed (gba debug rule) X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=gbajam22;a=commitdiff_plain;h=d985165d0e156c785895a5272113ff477bebeeb8 pass the gdb init file explicitly where needed (gba debug rule) --- 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