mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 06:39:46 -06:00
GDB stub over UNIX socket
This is available with the `GDBSocket` option in `~/.dolphin-emu/Config/Dolphin.ini`. GDB can connect to it with: $ powerpc-eabi-gdb (gdb) target remote |socat STDIO UNIX:foo.sock Because I don't like so much binding the GDB stub socket to 0.0.0.0. On Linux, with a suitable umask, we can make sure that another local user cannot connect to the socket.
This commit is contained in:
@ -325,6 +325,14 @@ static void CpuThread()
|
||||
|
||||
|
||||
#ifdef USE_GDBSTUB
|
||||
#ifndef _WIN32
|
||||
if (!_CoreParameter.gdb_socket.empty())
|
||||
{
|
||||
gdb_init_local(_CoreParameter.gdb_socket.data());
|
||||
gdb_break();
|
||||
}
|
||||
else
|
||||
#endif
|
||||
if (_CoreParameter.iGDBPort > 0)
|
||||
{
|
||||
gdb_init(_CoreParameter.iGDBPort);
|
||||
|
Reference in New Issue
Block a user