add arm fix for gdb from #1468
[openwrt.git] / toolchain / gdb / patches / 770-debian_vfork-done-spelling.patch
1 Index: gdb-6.3/gdb/linux-nat.c
2 ===================================================================
3 --- gdb-6.3.orig/gdb/linux-nat.c 2004-11-14 00:36:41.000000000 -0500
4 +++ gdb-6.3/gdb/linux-nat.c 2004-11-15 11:51:43.954161476 -0500
5 @@ -69,7 +69,7 @@
6 #define PTRACE_EVENT_VFORK 2
7 #define PTRACE_EVENT_CLONE 3
8 #define PTRACE_EVENT_EXEC 4
9 -#define PTRACE_EVENT_VFORKDONE 5
10 +#define PTRACE_EVENT_VFORK_DONE 5
11 #define PTRACE_EVENT_EXIT 6
12
13 #endif /* PTRACE_EVENT_FORK */
14 @@ -362,7 +362,7 @@ child_follow_fork (int follow_child)
15
16 ptrace (PTRACE_CONT, parent_pid, 0, 0);
17 waitpid (parent_pid, &status, __WALL);
18 - if ((status >> 16) != PTRACE_EVENT_VFORKDONE)
19 + if ((status >> 16) != PTRACE_EVENT_VFORK_DONE)
20 warning ("Unexpected waitpid result %06x when waiting for "
21 "vfork-done", status);
22 }
23 @@ -434,7 +434,7 @@ child_follow_fork (int follow_child)
24 generally not encounter vfork (vfork is defined to fork
25 in libpthread.so).
26
27 - The holding part is very easy if we have VFORKDONE events;
28 + The holding part is very easy if we have VFORK_DONE events;
29 but keeping track of both processes is beyond GDB at the
30 moment. So we don't expose the parent to the rest of GDB.
31 Instead we quietly hold onto it until such time as we can
This page took 0.047471 seconds and 5 git commands to generate.