mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-05-15 23:52:42 +00: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:
parent
80fe5e0a55
commit
04cb6fccd6
6 changed files with 69 additions and 17 deletions
|
@ -218,6 +218,9 @@ void SConfig::SaveGeneralSettings(IniFile& ini)
|
|||
general->Set("WirelessMac", m_WirelessMac);
|
||||
|
||||
#ifdef USE_GDBSTUB
|
||||
#ifndef _WIN32
|
||||
general->Set("GDBSocket", m_LocalCoreStartupParameter.gdb_socket);
|
||||
#endif
|
||||
general->Set("GDBPort", m_LocalCoreStartupParameter.iGDBPort);
|
||||
#endif
|
||||
}
|
||||
|
@ -421,6 +424,9 @@ void SConfig::LoadGeneralSettings(IniFile& ini)
|
|||
general->Get("ShowLag", &m_ShowLag, false);
|
||||
general->Get("ShowFrameCount", &m_ShowFrameCount, false);
|
||||
#ifdef USE_GDBSTUB
|
||||
#ifndef _WIN32
|
||||
general->Get("GDBSocket", &m_LocalCoreStartupParameter.gdb_socket, "");
|
||||
#endif
|
||||
general->Get("GDBPort", &(m_LocalCoreStartupParameter.iGDBPort), -1);
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue