diff options
author | Simon Marchi <simon.marchi@ericsson.com> | 2018-10-29 13:28:24 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@ericsson.com> | 2018-10-29 13:28:24 -0400 |
commit | 80e24d09860dbeba7d435b4a4f0990f85dbc084e (patch) | |
tree | 82a3f1c04859feda21838cda4398bc98db725895 /gdb/common | |
parent | 6a0b3457ee0c51fcc0708b630cc3cdd66226e9a6 (diff) | |
download | gdb-80e24d09860dbeba7d435b4a4f0990f85dbc084e.zip gdb-80e24d09860dbeba7d435b4a4f0990f85dbc084e.tar.gz gdb-80e24d09860dbeba7d435b4a4f0990f85dbc084e.tar.bz2 |
Revert "GDBSERVER: Listen on a unix domain (instead of TCP) socket if requested."
This reverts commit f19c7ff839d7a32ebb48482ae7d318fb46ca823d.
Diffstat (limited to 'gdb/common')
-rw-r--r-- | gdb/common/netstuff.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/gdb/common/netstuff.c b/gdb/common/netstuff.c index 11182c1..c1c401c 100644 --- a/gdb/common/netstuff.c +++ b/gdb/common/netstuff.c @@ -56,7 +56,6 @@ parse_connection_spec_without_prefix (std::string spec, struct addrinfo *hint) && (spec[0] == '[' || std::count (spec.begin (), spec.end (), ':') > 1))); - bool is_unix = hint->ai_family == AF_UNIX; if (is_ipv6) { @@ -110,12 +109,6 @@ parse_connection_spec_without_prefix (std::string spec, struct addrinfo *hint) if (ret.host_str.empty ()) ret.host_str = "localhost"; - if (is_unix && ret.host_str != "localhost") - error (_("The host name must be empty or 'localhost' for a unix domain socket.")); - - if (is_unix && ret.port_str.empty ()) - error (_("A path name must be specified for a unix domain socket.")); - return ret; } @@ -145,7 +138,6 @@ parse_connection_spec (const char *spec, struct addrinfo *hint) { "tcp4:", AF_INET, SOCK_STREAM }, { "udp6:", AF_INET6, SOCK_DGRAM }, { "tcp6:", AF_INET6, SOCK_STREAM }, - { "unix:", AF_LOCAL, SOCK_STREAM }, }; for (const host_prefix prefix : prefixes) |