command-not-found: Update with new executables
[termux-packages] / packages / gdb / linux_nat.patch
CommitLineData
59f0d218
FF
1diff -u -r ../gdb-7.7/gdb/linux-nat.c ./gdb/linux-nat.c
2--- ../gdb-7.7/gdb/linux-nat.c 2014-02-06 03:21:29.000000000 +0100
3+++ ./gdb/linux-nat.c 2014-02-12 01:55:15.000000000 +0100
4@@ -41,7 +41,6 @@
5 #include "inf-child.h"
6 #include "inf-ptrace.h"
7 #include "auxv.h"
8-#include <sys/procfs.h> /* for elf_gregset etc. */
9 #include "elf-bfd.h" /* for elfcore_write_* */
10 #include "gregset.h" /* for gregset */
11 #include "gdbcore.h" /* for get_exec_file */
12@@ -68,6 +67,10 @@
13 #include "target-descriptions.h"
14 #include "filestuff.h"
15
16+#ifndef W_STOPCODE
17+#define W_STOPCODE(sig) ((sig) << 8 | 0x7f)
18+#endif
19+
20 #ifndef SPUFS_MAGIC
21 #define SPUFS_MAGIC 0x23c9b64e
22 #endif
23@@ -3789,7 +3792,7 @@
24 if (last.kind == TARGET_WAITKIND_FORKED
25 || last.kind == TARGET_WAITKIND_VFORKED)
26 {
27- ptrace (PT_KILL, ptid_get_pid (last.value.related_pid), 0, 0);
28+ ptrace (PTRACE_KILL, ptid_get_pid (last.value.related_pid), 0, 0);
29 wait (&status);
30
31 /* Let the arch-specific native code know this process is