Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GDB stub over UNIX socket #2368

Merged
merged 1 commit into from May 11, 2015
Merged

GDB stub over UNIX socket #2368

merged 1 commit into from May 11, 2015

Conversation

randomstuff
Copy link
Contributor

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.

@@ -800,9 +800,52 @@ WSADATA InitData;

// exported functions

static void gdb_init_generic(int domain,
const struct sockaddr *server_addr, socklen_t server_addrlen,

This comment was marked as off-topic.

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.
@skidau
Copy link
Contributor

skidau commented May 11, 2015

It would have been cleaner to convert the code to SFML TcpSocket.

skidau added a commit that referenced this pull request May 11, 2015
@skidau skidau merged commit 294629f into dolphin-emu:master May 11, 2015
@randomstuff randomstuff deleted the gdb-unix branch May 13, 2015 23:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants