From 9467110bae19116ba041118b7d26d675e87506ce Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 5 Nov 2013 09:54:03 -0700 Subject: gdb configure updates Now that the configury needed for the "common" and "target" directories is in common.m4, some code in gdb's configure.ac is redundant. I ran this script after making an "ID" file using mkid: sed -n 's/^.*\(HAVE_[A-Z0-9_]*\).*$/\1/p' config.in | while read x; do echo ===== $x gid $x | egrep -v '^(testsuite|gnulib|common|target|gdbserver)/' done This finds all the spots using HAVE_ defines, and, more importantly, makes it clear which defines aren't used in the main parts of gdb. From this I came up with this patch to remove all the unused bits. There are a few that are subtly used -- for example the configure script sometimes checks internal configure cache variables, meaning some checks cannot be removed. 2013-11-08 Tom Tromey * configure, config.in: Rebuild. * configure.ac: Remove unused configury. --- gdb/config.in | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'gdb/config.in') diff --git a/gdb/config.in b/gdb/config.in index 7905468cbcb..ada9b3bade1 100644 --- a/gdb/config.in +++ b/gdb/config.in @@ -92,10 +92,6 @@ */ #undef HAVE_DECL_FREE -/* Define to 1 if you have the declaration of `getopt', and to 0 if you don't. - */ -#undef HAVE_DECL_GETOPT - /* Define to 1 if you have the declaration of `getthrds', and to 0 if you don't. */ #undef HAVE_DECL_GETTHRDS @@ -124,10 +120,6 @@ */ #undef HAVE_DECL_STRSTR -/* Define to 1 if you have the declaration of `vsnprintf', and to 0 if you - don't. */ -#undef HAVE_DECL_VSNPRINTF - /* Define to 1 if you have the header file, and it defines `DIR'. */ #undef HAVE_DIRENT_H @@ -291,9 +283,6 @@ /* Define to 1 if you have the `pread64' function. */ #undef HAVE_PREAD64 -/* Define if has prfpregset32_t. */ -#undef HAVE_PRFPREGSET32_T - /* Define if has prfpregset_t. */ #undef HAVE_PRFPREGSET_T @@ -303,15 +292,9 @@ /* Define if has prgregset_t. */ #undef HAVE_PRGREGSET_T -/* Define if ioctl argument PIOCSET is available. */ -#undef HAVE_PROCFS_PIOCSET - /* Define to 1 if you have the header file. */ #undef HAVE_PROC_SERVICE_H -/* Define if has prrun_t. */ -#undef HAVE_PRRUN_T - /* Define if has prsysent_t. */ #undef HAVE_PRSYSENT_T @@ -327,9 +310,6 @@ /* Define if has psaddr_t. */ #undef HAVE_PSADDR_T -/* Define if has pstatus_t. */ -#undef HAVE_PSTATUS_T - /* Define to 1 if you have the `ptrace64' function. */ #undef HAVE_PTRACE64 @@ -447,9 +427,6 @@ /* Define to 1 if `struct user_regs_struct' is a member of `gs_base'. */ #undef HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE -/* Define to 1 if you have the `syscall' function. */ -#undef HAVE_SYSCALL - /* Define to 1 if you have the header file. */ #undef HAVE_SYS_DEBUGREG_H -- cgit v1.2.1