From c246143823df29e9ce4c5115c647a47954dea883 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Thu, 8 Feb 2007 14:43:11 +0000 Subject: [PATCH] Without HAVE_SYS_TYPES_H or HAVE_SYS_WAIT_H, in connect_debugger we don't know how to connect to GDB, so just return. --- src/ui/ChangeLog | 5 +++++ src/ui/debugger.c | 16 ++++++++++++---- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/src/ui/ChangeLog b/src/ui/ChangeLog index 1eba8ed6..3f59ee01 100644 --- a/src/ui/ChangeLog +++ b/src/ui/ChangeLog @@ -1,3 +1,8 @@ +Thu Feb 8 06:34:52 2007 Ben Pfaff + + * [!(HAVE_SYS_TYPES_H && HAVE_SYS_WAIT_H)] (connect_debugger) In + this case, we don't know how to connect to GDB, so just return. + Mon Jan 15 11:06:31 2007 Ben Pfaff * flexifile.c [DEBUGGING] (dump_case_data): Use case accessor diff --git a/src/ui/debugger.c b/src/ui/debugger.c index 7d7b0cce..7b9c0b92 100644 --- a/src/ui/debugger.c +++ b/src/ui/debugger.c @@ -18,6 +18,9 @@ #include +#include "debugger.h" + +#if HAVE_SYS_TYPES_H && HAVE_SYS_WAIT_H #include #include #include @@ -25,14 +28,10 @@ #include #include - -#include "debugger.h" - /* Fork, start gdb and connect to the parent process. If that happens successfully, then this function does not return, but exits with EXIT_FAILURE. Otherwise it returns. */ - void connect_debugger (void) { @@ -64,3 +63,12 @@ connect_debugger (void) exit (EXIT_FAILURE); } +#else /* !(HAVE_SYS_TYPES_H && HAVE_SYS_WAIT_H) */ +/* Don't know how to connect to gdb. + Just return. + */ +void +connect_debugger (void) +{ +} +#endif /* !(HAVE_SYS_TYPES_H && HAVE_SYS_WAIT_H) */ -- 2.30.2