From 3253c5dd32fa60aed96fc4f4544dc34fd930f54c Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 19 Jan 2024 20:34:06 -0500 Subject: [PATCH] GBA Debugger defaults to loopback address --- src/debugger/debugger.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/debugger/debugger.c b/src/debugger/debugger.c index cc6beab9c..01843772b 100644 --- a/src/debugger/debugger.c +++ b/src/debugger/debugger.c @@ -53,7 +53,11 @@ struct mDebugger* mDebuggerCreate(enum mDebuggerType type, struct mCore* core) { case DEBUGGER_GDB: #ifdef USE_GDB_STUB GDBStubCreate(&debugger->gdb); - GDBStubListen(&debugger->gdb, 2345, 0, GDB_WATCHPOINT_STANDARD_LOGIC); + struct Address localHost = { + .version = IPV4, + .ipv4 = 0x7F000001 + }; + GDBStubListen(&debugger->gdb, 2345, &localHost, GDB_WATCHPOINT_STANDARD_LOGIC); break; #endif case DEBUGGER_NONE: