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:
Gabriel Corona
2015-05-05 01:15:16 +02:00
parent 80fe5e0a55
commit 04cb6fccd6
6 changed files with 69 additions and 17 deletions

View File

@ -30,6 +30,7 @@ typedef enum {
} gdb_bp_type;
void gdb_init(u32 port);
void gdb_init_local(const char *socket);
void gdb_deinit();
bool gdb_active();
void gdb_break();