aboutsummaryrefslogtreecommitdiffstats
path: root/toolchain/gdb/patches/770-debian_vfork-done-spelling.patch
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openwrt.org>2005-06-07 08:11:06 +0000
committerWaldemar Brodkorb <wbx@openwrt.org>2005-06-07 08:11:06 +0000
commit7dc2e6dab0769df77a5a23bd34a666e25b88842b (patch)
treec154b3c2f8370f229a4f8fd0bf65c3ae12060383 /toolchain/gdb/patches/770-debian_vfork-done-spelling.patch
parent53d63aad955f53b9d2b933b7ca19ef655ef55ab5 (diff)
downloadmaster-187ad058-7dc2e6dab0769df77a5a23bd34a666e25b88842b.tar.gz
master-187ad058-7dc2e6dab0769df77a5a23bd34a666e25b88842b.tar.bz2
master-187ad058-7dc2e6dab0769df77a5a23bd34a666e25b88842b.zip
add gdb-client to run on host to debug target.. (kgdb)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@1166 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'toolchain/gdb/patches/770-debian_vfork-done-spelling.patch')
-rw-r--r--toolchain/gdb/patches/770-debian_vfork-done-spelling.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/toolchain/gdb/patches/770-debian_vfork-done-spelling.patch b/toolchain/gdb/patches/770-debian_vfork-done-spelling.patch
new file mode 100644
index 0000000000..f65db8d091
--- /dev/null
+++ b/toolchain/gdb/patches/770-debian_vfork-done-spelling.patch
@@ -0,0 +1,31 @@
+Index: gdb-6.3/gdb/linux-nat.c
+===================================================================
+--- gdb-6.3.orig/gdb/linux-nat.c 2004-11-14 00:36:41.000000000 -0500
++++ gdb-6.3/gdb/linux-nat.c 2004-11-15 11:51:43.954161476 -0500
+@@ -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 */
+@@ -362,7 +362,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);
+ }
+@@ -434,7 +434,7 @@ child_follow_fork (int follow_child)
+ generally not encounter vfork (vfork is defined to fork
+ in libpthread.so).
+
+- The holding part is very easy if we have VFORKDONE events;
++ The holding part is very easy if we have VFORK_DONE events;
+ but keeping track of both processes is beyond GDB at the
+ moment. So we don't expose the parent to the rest of GDB.
+ Instead we quietly hold onto it until such time as we can