diff options
author | Pierre Muller <muller@sourceware.org> | 2012-11-15 16:12:19 +0000 |
---|---|---|
committer | Pierre Muller <muller@sourceware.org> | 2012-11-15 16:12:19 +0000 |
commit | 8bdce1ffdf65dc18332dfddb39482f6685cec85a (patch) | |
tree | baf333dd105f99f14a4b4ebfca4f91e0a76eba29 /gdb/gdbserver | |
parent | 3a731e0fc7b80a274d4a34fed7ed41d6f35f1e51 (diff) | |
download | binutils-gdb-8bdce1ffdf65dc18332dfddb39482f6685cec85a.tar.gz |
2012-11-15 Pierre Muller <muller@sourceware.org>
ARI fixes: move gdb_wait and gdb_stat headers to common subdirectory.
* gdb_stat.h: Delete. Moved to common directory.
* common/gdb_stat.h: New file.
* gdb_wait.h: Delete. Moved to common directory.
* common/gdb_wait.h: New file.
* Makefile.in (H_FILES_NO_SRC): Adapt to new header
location.
* contrib/ari/gdb_ari.sh (wait.h rule): Adapt to new gdb_wait.h
location.
(stat.h rule): Adapt to new gdb_stat.h location.
* common/linux-osdata.c: Include "gdb_stat.h" header instead of
<sys/stat.h> header.
* common/linux-ptrace.c: Include "gdb_wait.h" header instead of
<sys/wait.h> header.
gdbserver ChangeLog entry:
2012-11-15 Pierre Muller <muller@sourceware.org>
* configure.ac (AC_CHECK_HEADERS): Add wait.h header.
* config.in: Regenerate.
* configure: Regenerate.
* linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
Use "gdb_wait.h" header instead of <sys/wait.h> header.
* lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
* remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
header.
* server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
instead of <sys/wait.h> header.
* spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r-- | gdb/gdbserver/ChangeLog | 14 | ||||
-rw-r--r-- | gdb/gdbserver/config.in | 3 | ||||
-rwxr-xr-x | gdb/gdbserver/configure | 2 | ||||
-rw-r--r-- | gdb/gdbserver/configure.ac | 2 | ||||
-rw-r--r-- | gdb/gdbserver/linux-low.c | 4 | ||||
-rw-r--r-- | gdb/gdbserver/lynx-low.c | 2 | ||||
-rw-r--r-- | gdb/gdbserver/remote-utils.c | 2 | ||||
-rw-r--r-- | gdb/gdbserver/server.c | 4 | ||||
-rw-r--r-- | gdb/gdbserver/spu-low.c | 2 |
9 files changed, 25 insertions, 10 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 3513dad1d81..7025e582eea 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,17 @@ +2012-11-15 Pierre Muller <muller@sourceware.org> + + * configure.ac (AC_CHECK_HEADERS): Add wait.h header. + * config.in: Regenerate. + * configure: Regenerate. + * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header. + Use "gdb_wait.h" header instead of <sys/wait.h> header. + * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header. + * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h> + header. + * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header + instead of <sys/wait.h> header. + * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header. + 2012-11-13 Markus Metzger <markus.t.metzger@intel.com> * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER diff --git a/gdb/gdbserver/config.in b/gdb/gdbserver/config.in index bacf005e2f0..63ff9b21663 100644 --- a/gdb/gdbserver/config.in +++ b/gdb/gdbserver/config.in @@ -217,6 +217,9 @@ /* Define to 1 if you have the `vsnprintf' function. */ #undef HAVE_VSNPRINTF +/* Define to 1 if you have the <wait.h> header file. */ +#undef HAVE_WAIT_H + /* Checking if errno must be defined */ #undef MUST_DEFINE_ERRNO diff --git a/gdb/gdbserver/configure b/gdb/gdbserver/configure index 69953c25c57..b451a22bc32 100755 --- a/gdb/gdbserver/configure +++ b/gdb/gdbserver/configure @@ -4419,7 +4419,7 @@ $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cach cd "$ac_popdir" -for ac_header in sgtty.h termio.h termios.h sys/reg.h string.h proc_service.h sys/procfs.h thread_db.h linux/elf.h stdlib.h unistd.h errno.h fcntl.h signal.h sys/file.h malloc.h sys/ioctl.h netinet/in.h sys/socket.h netdb.h netinet/tcp.h arpa/inet.h sys/wait.h sys/un.h +for ac_header in sgtty.h termio.h termios.h sys/reg.h string.h proc_service.h sys/procfs.h thread_db.h linux/elf.h stdlib.h unistd.h errno.h fcntl.h signal.h sys/file.h malloc.h sys/ioctl.h netinet/in.h sys/socket.h netdb.h netinet/tcp.h arpa/inet.h sys/wait.h wait.h sys/un.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" diff --git a/gdb/gdbserver/configure.ac b/gdb/gdbserver/configure.ac index dc3c3cdd707..46f5dc024dc 100644 --- a/gdb/gdbserver/configure.ac +++ b/gdb/gdbserver/configure.ac @@ -55,7 +55,7 @@ AC_CHECK_HEADERS(sgtty.h termio.h termios.h sys/reg.h string.h dnl stdlib.h unistd.h dnl errno.h fcntl.h signal.h sys/file.h malloc.h dnl sys/ioctl.h netinet/in.h sys/socket.h netdb.h dnl - netinet/tcp.h arpa/inet.h sys/wait.h sys/un.h) + netinet/tcp.h arpa/inet.h sys/wait.h wait.h sys/un.h) AC_CHECK_FUNCS(pread pwrite pread64 readlink) AC_REPLACE_FUNCS(vasprintf vsnprintf) diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c index a476031faf4..2de46d288b6 100644 --- a/gdb/gdbserver/linux-low.c +++ b/gdb/gdbserver/linux-low.c @@ -21,7 +21,7 @@ #include "linux-osdata.h" #include "agent.h" -#include <sys/wait.h> +#include "gdb_wait.h" #include <stdio.h> #include <sys/param.h> #include <sys/ptrace.h> @@ -40,7 +40,7 @@ #include <pwd.h> #include <sys/types.h> #include <dirent.h> -#include <sys/stat.h> +#include "gdb_stat.h" #include <sys/vfs.h> #include <sys/uio.h> #ifndef ELFMAG0 diff --git a/gdb/gdbserver/lynx-low.c b/gdb/gdbserver/lynx-low.c index 2c7ab6e3dfa..1a4757e1c34 100644 --- a/gdb/gdbserver/lynx-low.c +++ b/gdb/gdbserver/lynx-low.c @@ -25,7 +25,7 @@ #include <unistd.h> #include <sys/ioctl.h> #include <sys/types.h> -#include <sys/wait.h> +#include "gdb_wait.h" #include <signal.h> int using_threads = 1; diff --git a/gdb/gdbserver/remote-utils.c b/gdb/gdbserver/remote-utils.c index 63a3e80e60f..adc8783ec5f 100644 --- a/gdb/gdbserver/remote-utils.c +++ b/gdb/gdbserver/remote-utils.c @@ -56,7 +56,7 @@ #if HAVE_ARPA_INET_H #include <arpa/inet.h> #endif -#include <sys/stat.h> +#include "gdb_stat.h" #if HAVE_ERRNO_H #include <errno.h> #endif diff --git a/gdb/gdbserver/server.c b/gdb/gdbserver/server.c index c611b7d90fa..fae919913ee 100644 --- a/gdb/gdbserver/server.c +++ b/gdb/gdbserver/server.c @@ -27,9 +27,7 @@ #if HAVE_SIGNAL_H #include <signal.h> #endif -#if HAVE_SYS_WAIT_H -#include <sys/wait.h> -#endif +#include "gdb_wait.h" /* The thread set with an `Hc' packet. `Hc' is deprecated in favor of `vCont'. Note the multi-process extensions made `vCont' a diff --git a/gdb/gdbserver/spu-low.c b/gdb/gdbserver/spu-low.c index 2265fad23f6..f3ee1d95e2a 100644 --- a/gdb/gdbserver/spu-low.c +++ b/gdb/gdbserver/spu-low.c @@ -20,7 +20,7 @@ #include "server.h" -#include <sys/wait.h> +#include "gdb_wait.h" #include <stdio.h> #include <sys/ptrace.h> #include <fcntl.h> |