aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@ericsson.com>2018-10-29 13:22:42 -0400
committerSimon Marchi <simon.marchi@ericsson.com>2018-10-29 13:22:42 -0400
commit7f53228719a0111e41c66da6c9c3b2ed1fd2aab9 (patch)
tree85d0315bbae452997fdac02144d5c1044b707375 /gdb
parent30a7953dbfe3659c7bdc5b9b4c96f46903cb0254 (diff)
downloadgdb-7f53228719a0111e41c66da6c9c3b2ed1fd2aab9.zip
gdb-7f53228719a0111e41c66da6c9c3b2ed1fd2aab9.tar.gz
gdb-7f53228719a0111e41c66da6c9c3b2ed1fd2aab9.tar.bz2
Revert "GDB: Only build for "unix:" connections if AF_LOCAL is supported."
This reverts commit 98a17ece013cb94cd602496b9efb92b8816b3953.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog8
-rw-r--r--gdb/common/netstuff.c2
-rw-r--r--gdb/config.in3
-rwxr-xr-xgdb/configure21
-rw-r--r--gdb/configure.ac10
5 files changed, 0 insertions, 44 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 1cba619..51ba04d 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -2,14 +2,6 @@
* procfs.c: Include common/pathstuff.h.
-2018-10-29 John Darrington <john@darrington.wattle.id.au>
-
- * configure.ac: New test HAVE_AF_LOCAL
- * common/netstuff.c (parse_connection_spec) [prefixes]: Only
- compile "unix:" if HAVE_AF_LOCAL is true.
- * configure: Regenerate.
- * config.in: Regenerate.
-
2018-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
* riscv-linux-nat.c (riscv_linux_nat_target::fetch_registers):
diff --git a/gdb/common/netstuff.c b/gdb/common/netstuff.c
index 56bcdfc..11182c1 100644
--- a/gdb/common/netstuff.c
+++ b/gdb/common/netstuff.c
@@ -145,9 +145,7 @@ parse_connection_spec (const char *spec, struct addrinfo *hint)
{ "tcp4:", AF_INET, SOCK_STREAM },
{ "udp6:", AF_INET6, SOCK_DGRAM },
{ "tcp6:", AF_INET6, SOCK_STREAM },
-#if HAVE_AF_LOCAL
{ "unix:", AF_LOCAL, SOCK_STREAM },
-#endif
};
for (const host_prefix prefix : prefixes)
diff --git a/gdb/config.in b/gdb/config.in
index a9d7edc2..f0d1414 100644
--- a/gdb/config.in
+++ b/gdb/config.in
@@ -68,9 +68,6 @@
/* Define if self-testing features should be enabled */
#undef GDB_SELF_TEST
-/* Define to 1 if AF_LOCAL is defined or declared by sys/socket.h. */
-#undef HAVE_AF_LOCAL
-
/* Define to 1 if you have `alloca', as a function or macro. */
#undef HAVE_ALLOCA
diff --git a/gdb/configure b/gdb/configure
index a2e7f02..3652455 100755
--- a/gdb/configure
+++ b/gdb/configure
@@ -13997,27 +13997,6 @@ _ACEOF
fi
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-
-#include <sys/socket.h>
-
-int
-main ()
-{
-int x = AF_LOCAL
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
-
-$as_echo "#define HAVE_AF_LOCAL 1" >>confdefs.h
-
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-
-
if test "$cross_compiling" = no; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
$as_echo_n "checking whether setpgrp takes no argument... " >&6; }
diff --git a/gdb/configure.ac b/gdb/configure.ac
index 7d5e027..b2343a9 100644
--- a/gdb/configure.ac
+++ b/gdb/configure.ac
@@ -1366,16 +1366,6 @@ GDB_AC_COMMON
# Check the return and argument types of ptrace.
GDB_AC_PTRACE
-dnl Check to see if sys/socket.h knows about AF_LOCAL
-AC_COMPILE_IFELSE(
- [AC_LANG_PROGRAM([[
-#include <sys/socket.h>
-]],
- [[int x = AF_LOCAL]])],
-[AC_DEFINE([HAVE_AF_LOCAL], [1],
- [Define to 1 if AF_LOCAL is defined or declared by sys/socket.h.])])
-
-
dnl AC_FUNC_SETPGRP does not work when cross compiling
dnl Instead, assume we will have a prototype for setpgrp if cross compiling.
if test "$cross_compiling" = no; then