-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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 server: support for local socket file #4686
GDB server: support for local socket file #4686
Conversation
…ad.lock() some personal notes: * possibly select_thread bug? * seems to happen whenever the debugger is attached when the RPCS3 engine is not yet booted, i.e. at program launchtime * seems to break launching games as well
…ode/line number in gdbDebugServer fail message
…or unlinking socket file on termination
@@ -3,6 +3,7 @@ | |||
#include "VFS.h" | |||
#include "Utilities/Atomic.h" | |||
#include "Utilities/Config.h" | |||
#include <sys/socket.h> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Get it somewhere out of there
cfg::string socket_type{this, "Socket type", "INET"}; | ||
cfg::_int<1, 65535> ipv4_port{this, "IPv4 port", 2345}; | ||
cfg::string unix_fpath{this, "UNIX socket file path", | ||
#ifndef _WIN32 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes more sense to hide the whole config string
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clarify what you mean?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
he means remove the option completely on windows
Needs a rebase with fixing conflicts and handling code reviews |
Closing as it's now implemented in a very different manner. |
NOTE: not ready for merge; requires:
-- especially testing local sockets in Windows, currently disabled
-- in addition, this modifies the config yaml (read below)
Right now, the GDB server only listens on an IPv4 port, but it might make sense to include the option to listen at a local socket. May be preferable to a IPv4 since a user won't have to specify special firewall rules.
Note that this also requires how config.yml encodes the GDB server settings; for now, they're in a separate heading, e.g.
whereas RPCS3 just has a single key/value for IPv4 port in the yaml under misc: