Dolphin, the GameCube and Wii emulator - Forums
GDBStub not working - Printable Version

+- Dolphin, the GameCube and Wii emulator - Forums (https://forums.dolphin-emu.org)
+-- Forum: Dolphin Emulator Discussion and Support (https://forums.dolphin-emu.org/Forum-dolphin-emulator-discussion-and-support)
+--- Forum: Development Discussion (https://forums.dolphin-emu.org/Forum-development-discussion)
+--- Thread: GDBStub not working (/Thread-gdbstub-not-working)



GDBStub not working - Leseratte10 - 06-09-2020

I was trying to do some game debugging with gdb, and I enabled the USE_GDBSTUB compile option to enable that in Dolphin.

The GDB port is open, I can connect to it using gdb (target remote 127.1:port), but then I get errors in GDB:

Code:
(gdb) target remote 127.1:33345
Remote debugging using 127.1:33345
Ignoring packet error, continuing...
warning: unrecognized item "timeout" in "qSupported" response
Ignoring packet error, continuing...
Remote replied unexpectedly to 'vMustReplyEmpty': timeout
(gdb)

I found this old thread where someone was trying to use it, but it seems as if it didn't work for him:
https://forums.dolphin-emu.org/Thread-gdbstub-work-incorrectly

Then I found this PR ( https://github.com/dolphin-emu/dolphin/pull/8262 ) which fixed something with the GDB Stub, but also states that it doesn't quite work at the moment.

Is there anything I can do to get this to work? It'd be cool to use Dolphin's GDB feature to debug my Wii stuff, as I can't easily include the libogc GDB library for multiple reasons.

Is it planned to improve / fix that GDB stub again at some point?


RE: GDBStub not working - skid - 06-09-2020

I suspect if you want the GDB stub to work for you, you'll have to fix it and submit a PR. Hope that doesn't sound like a cop-out answer. Last I looked it had the basic functions implemented and only worked with the interpreter core. The built-in debugger in Dolphin was what most of us used.