pspp-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pspp-cvs] pspp/src/ui debugger.c ChangeLog


From: Ben Pfaff
Subject: [Pspp-cvs] pspp/src/ui debugger.c ChangeLog
Date: Thu, 08 Feb 2007 14:43:11 +0000

CVSROOT:        /cvsroot/pspp
Module name:    pspp
Changes by:     Ben Pfaff <blp> 07/02/08 14:43:11

Modified files:
        src/ui         : debugger.c ChangeLog 

Log message:
        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.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/pspp/src/ui/debugger.c?cvsroot=pspp&r1=1.2&r2=1.3
http://cvs.savannah.gnu.org/viewcvs/pspp/src/ui/ChangeLog?cvsroot=pspp&r1=1.5&r2=1.6

Patches:
Index: debugger.c
===================================================================
RCS file: /cvsroot/pspp/pspp/src/ui/debugger.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- debugger.c  16 Dec 2006 04:26:43 -0000      1.2
+++ debugger.c  8 Feb 2007 14:43:11 -0000       1.3
@@ -18,6 +18,9 @@
 
 #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>
@@ -25,14 +28,10 @@
 #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)
 {
@@ -64,3 +63,12 @@
   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) */

Index: ChangeLog
===================================================================
RCS file: /cvsroot/pspp/pspp/src/ui/ChangeLog,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- ChangeLog   16 Jan 2007 15:30:28 -0000      1.5
+++ ChangeLog   8 Feb 2007 14:43:11 -0000       1.6
@@ -1,3 +1,8 @@
+Thu Feb  8 06:34:52 2007  Ben Pfaff  <address@hidden>
+
+       * [!(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  <address@hidden>
 
        * flexifile.c [DEBUGGING] (dump_case_data): Use case accessor




reply via email to

[Prev in Thread] Current Thread [Next in Thread]