diff options
author | Pedro Alves <palves@redhat.com> | 2008-07-31 17:46:33 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2008-07-31 17:46:33 +0000 |
commit | ec56be1b4dc25ec39c32ceab997747ad651c9d22 (patch) | |
tree | e8e6a4734fbf53dc0cc3be40f360b1fe6e8fe9e5 /gdb/gdbserver/server.c | |
parent | 5e06a3d1d5dcd15d8a883d3dde9fd90a5a5b8790 (diff) | |
download | fsf-binutils-gdb-ec56be1b4dc25ec39c32ceab997747ad651c9d22.zip fsf-binutils-gdb-ec56be1b4dc25ec39c32ceab997747ad651c9d22.tar.gz fsf-binutils-gdb-ec56be1b4dc25ec39c32ceab997747ad651c9d22.tar.bz2 |
* configure.ac: Check for memmem declaration.
* server.c [HAVE_MALLOC_H]: Include malloc.h.
(disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
(disable_packet_qfThreadInfo): Unconditionally compile.
* server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
* configure, config.in: Regenerate.
Diffstat (limited to 'gdb/gdbserver/server.c')
-rw-r--r-- | gdb/gdbserver/server.c | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/gdb/gdbserver/server.c b/gdb/gdbserver/server.c index da9d83c..1fa1694 100644 --- a/gdb/gdbserver/server.c +++ b/gdb/gdbserver/server.c @@ -28,6 +28,9 @@ #if HAVE_SYS_WAIT_H #include <sys/wait.h> #endif +#if HAVE_MALLOC_H +#include <malloc.h> +#endif unsigned long cont_thread; unsigned long general_thread; @@ -67,14 +70,6 @@ int terminal_fd; /* TERMINAL_FD's original foreground group. */ pid_t old_foreground_pgrp; -/* Set if you want to disable optional thread related packets support - in gdbserver, for the sake of testing GDB against stubs that don't - support them. */ -int disable_packet_vCont; -int disable_packet_Tthread; -int disable_packet_qC; -int disable_packet_qfThreadInfo; - /* Hand back terminal ownership to the original foreground group. */ static void @@ -84,6 +79,14 @@ restore_old_foreground_pgrp (void) } #endif +/* Set if you want to disable optional thread related packets support + in gdbserver, for the sake of testing GDB against stubs that don't + support them. */ +int disable_packet_vCont; +int disable_packet_Tthread; +int disable_packet_qC; +int disable_packet_qfThreadInfo; + static int target_running (void) { |