* linux-nat.c (PTRACE_EVENT_VFORK_DONE): Renamed from
authorAndreas Schwab <schwab@linux-m68k.org>
Mon, 8 Nov 2004 16:05:12 +0000 (16:05 +0000)
committerAndreas Schwab <schwab@linux-m68k.org>
Mon, 8 Nov 2004 16:05:12 +0000 (16:05 +0000)
PTRACE_EVENT_VFORKDONE.
(child_follow_fork): Adjust.

gdb/ChangeLog
gdb/linux-nat.c

index 8cf445ac266d023047eb8e42d300080b15d16178..22a06a162ca2ee003ebb3722ac8f73d46aa5c5a1 100644 (file)
@@ -1,3 +1,9 @@
+2004-11-08  Andreas Schwab  <schwab@suse.de>
+
+       * linux-nat.c (PTRACE_EVENT_VFORK_DONE): Renamed from
+       PTRACE_EVENT_VFORKDONE.
+       (child_follow_fork): Adjust.
+
 2004-11-08  Andrew Cagney  <cagney@gnu.org>
 
        * README: Refer to 6.3, not 6.2, update directory listing droppng
index 9c40f772e64305eec16c5417ffba9953790d85ae..1300637b10f8496c2f540b228851fd7d128918fd 100644 (file)
@@ -69,7 +69,7 @@
 #define PTRACE_EVENT_VFORK     2
 #define PTRACE_EVENT_CLONE     3
 #define PTRACE_EVENT_EXEC      4
-#define PTRACE_EVENT_VFORKDONE 5
+#define PTRACE_EVENT_VFORK_DONE        5
 #define PTRACE_EVENT_EXIT      6
 
 #endif /* PTRACE_EVENT_FORK */
@@ -314,7 +314,7 @@ child_follow_fork (int follow_child)
 
              ptrace (PTRACE_CONT, parent_pid, 0, 0);
              waitpid (parent_pid, &status, __WALL);
-             if ((status >> 16) != PTRACE_EVENT_VFORKDONE)
+             if ((status >> 16) != PTRACE_EVENT_VFORK_DONE)
                warning ("Unexpected waitpid result %06x when waiting for "
                         "vfork-done", status);
            }