From 80e24d09860dbeba7d435b4a4f0990f85dbc084e Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Mon, 29 Oct 2018 13:28:24 -0400 Subject: Revert "GDBSERVER: Listen on a unix domain (instead of TCP) socket if requested." This reverts commit f19c7ff839d7a32ebb48482ae7d318fb46ca823d. --- gdb/common/netstuff.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'gdb/common') 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) -- cgit v1.1