diff options
Diffstat (limited to 'meta/recipes-devtools/gdb/gdb/gdb-Fix-ia64-defining-TRAP_HWBKPT-before-including-g.patch')
-rw-r--r-- | meta/recipes-devtools/gdb/gdb/gdb-Fix-ia64-defining-TRAP_HWBKPT-before-including-g.patch | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gdb/gdb/gdb-Fix-ia64-defining-TRAP_HWBKPT-before-including-g.patch b/meta/recipes-devtools/gdb/gdb/gdb-Fix-ia64-defining-TRAP_HWBKPT-before-including-g.patch new file mode 100644 index 0000000000..9bf99f6beb --- /dev/null +++ b/meta/recipes-devtools/gdb/gdb/gdb-Fix-ia64-defining-TRAP_HWBKPT-before-including-g.patch | |||
@@ -0,0 +1,53 @@ | |||
1 | From 49bd068c3acf376a3018c0ebd849bf7f72a1874d Mon Sep 17 00:00:00 2001 | ||
2 | From: James Clarke <jrtc27@jrtc27.com> | ||
3 | Date: Fri, 19 Jan 2018 17:22:49 +0000 | ||
4 | Subject: [PATCH] gdb: Fix ia64 defining TRAP_HWBKPT before including | ||
5 | gdb_wait.h | ||
6 | |||
7 | On ia64, gdb_wait.h eventually includes siginfo-consts-arch.h, which | ||
8 | contains an enum with TRAP_HWBKPT, along with a #define. Thus we cannot | ||
9 | define TRAP_HWBKPT to 4 beforehand, and so gdb_wait.h must be included | ||
10 | earlier; include it from linux-ptrace.h so it can never come afterwards. | ||
11 | |||
12 | gdb/ChangeLog: | ||
13 | |||
14 | * nat/linux-ptrace.c: Remove unnecessary reinclusion of | ||
15 | gdb_ptrace.h, and move including gdb_wait.h ... | ||
16 | * nat/linux-ptrace.h: ... to here. | ||
17 | |||
18 | Upstream-Status: Accepted [https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commit;h=5a6c3296a7a90694ad4042f6256f3da6d4fa4ee8] | ||
19 | |||
20 | Signed-off-by: Daniel Díaz <daniel.diaz@linaro.org> | ||
21 | --- | ||
22 | gdb/nat/linux-ptrace.c | 2 -- | ||
23 | gdb/nat/linux-ptrace.h | 1 + | ||
24 | 2 files changed, 1 insertion(+), 2 deletions(-) | ||
25 | |||
26 | diff --git a/gdb/nat/linux-ptrace.c b/gdb/nat/linux-ptrace.c | ||
27 | index 3447e07..dd3310e 100644 | ||
28 | --- a/gdb/nat/linux-ptrace.c | ||
29 | +++ b/gdb/nat/linux-ptrace.c | ||
30 | @@ -21,8 +21,6 @@ | ||
31 | #include "linux-procfs.h" | ||
32 | #include "linux-waitpid.h" | ||
33 | #include "buffer.h" | ||
34 | -#include "gdb_wait.h" | ||
35 | -#include "gdb_ptrace.h" | ||
36 | #include <sys/procfs.h> | ||
37 | |||
38 | /* Stores the ptrace options supported by the running kernel. | ||
39 | diff --git a/gdb/nat/linux-ptrace.h b/gdb/nat/linux-ptrace.h | ||
40 | index 5954945..6faa89b 100644 | ||
41 | --- a/gdb/nat/linux-ptrace.h | ||
42 | +++ b/gdb/nat/linux-ptrace.h | ||
43 | @@ -21,6 +21,7 @@ | ||
44 | struct buffer; | ||
45 | |||
46 | #include "nat/gdb_ptrace.h" | ||
47 | +#include "gdb_wait.h" | ||
48 | |||
49 | #ifdef __UCLIBC__ | ||
50 | #if !(defined(__UCLIBC_HAS_MMU__) || defined(__ARCH_HAS_MMU__)) | ||
51 | -- | ||
52 | 2.7.4 | ||
53 | |||