aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@linux-m68k.org>2004-11-08 16:05:12 +0000
committerAndreas Schwab <schwab@linux-m68k.org>2004-11-08 16:05:12 +0000
commitc874c7fcd5208088b240eb4570661267fd7658e8 (patch)
tree1eda09bd24dbc6e3c723bff246cdfe3df8e91b73 /gdb
parent5c26072a1267dc7e9fc01a680ab350eb7d8c10a6 (diff)
downloadgdb-c874c7fcd5208088b240eb4570661267fd7658e8.zip
gdb-c874c7fcd5208088b240eb4570661267fd7658e8.tar.gz
gdb-c874c7fcd5208088b240eb4570661267fd7658e8.tar.bz2
* linux-nat.c (PTRACE_EVENT_VFORK_DONE): Renamed from
PTRACE_EVENT_VFORKDONE. (child_follow_fork): Adjust.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/linux-nat.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 8cf445a..22a06a1 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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
diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c
index 9c40f77..1300637 100644
--- a/gdb/linux-nat.c
+++ b/gdb/linux-nat.c
@@ -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);
}