don't know how to connect to GDB, so just return.
+Thu Feb 8 06:34:52 2007 Ben Pfaff <blp@gnu.org>
+
+ * [!(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 <blp@gnu.org>
* flexifile.c [DEBUGGING] (dump_case_data): Use case accessor
#include <config.h>
+#include "debugger.h"
+
+#if HAVE_SYS_TYPES_H && HAVE_SYS_WAIT_H
#include <errno.h>
#include <sys/types.h>
#include <unistd.h>
#include <stdlib.h>
#include <sys/wait.h>
-
-#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)
{
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) */