aboutsummaryrefslogtreecommitdiff
path: root/gdb/nat
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/nat')
-rw-r--r--gdb/nat/linux-waitpid.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/gdb/nat/linux-waitpid.c b/gdb/nat/linux-waitpid.c
index 53847ac..04cdc3d 100644
--- a/gdb/nat/linux-waitpid.c
+++ b/gdb/nat/linux-waitpid.c
@@ -17,11 +17,14 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
+#include "common-defs.h"
+
#ifdef GDBSERVER
+/* FIXME: server.h is required for the definition of debug_threads
+ which is used in the gdbserver-specific debug printing in
+ linux_debug. This code should be made available to GDB also,
+ but the lack of a suitable flag to enable it prevents this. */
#include "server.h"
-#else
-#include "defs.h"
-#include "signal.h"
#endif
#include "linux-nat.h"
@@ -42,8 +45,6 @@ linux_debug (const char *format, ...)
vfprintf (stderr, format, args);
va_end (args);
}
-#else
- /* GDB-specific debugging output. */
#endif
}