summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gdb/gdb/0003-ppc-ptrace-Define-pt_regs-uapi_pt_regs-on-GLIBC-syst.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/gdb/gdb/0003-ppc-ptrace-Define-pt_regs-uapi_pt_regs-on-GLIBC-syst.patch')
-rw-r--r--meta/recipes-devtools/gdb/gdb/0003-ppc-ptrace-Define-pt_regs-uapi_pt_regs-on-GLIBC-syst.patch50
1 files changed, 27 insertions, 23 deletions
diff --git a/meta/recipes-devtools/gdb/gdb/0003-ppc-ptrace-Define-pt_regs-uapi_pt_regs-on-GLIBC-syst.patch b/meta/recipes-devtools/gdb/gdb/0003-ppc-ptrace-Define-pt_regs-uapi_pt_regs-on-GLIBC-syst.patch
index c4bab7bb1a..cbe1779db7 100644
--- a/meta/recipes-devtools/gdb/gdb/0003-ppc-ptrace-Define-pt_regs-uapi_pt_regs-on-GLIBC-syst.patch
+++ b/meta/recipes-devtools/gdb/gdb/0003-ppc-ptrace-Define-pt_regs-uapi_pt_regs-on-GLIBC-syst.patch
@@ -1,36 +1,19 @@
1From d5817bcf2f7313699bfa85b41220d862db327664 Mon Sep 17 00:00:00 2001 1From afbb66c244b1ae0aaaa90d88d3cd484f741c614f Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 30 Apr 2016 18:32:14 -0700 3Date: Sat, 30 Apr 2016 18:32:14 -0700
4Subject: [PATCH] ppc/ptrace: Define pt_regs uapi_pt_regs on !GLIBC systems 4Subject: [PATCH 03/11] ppc/ptrace: Define pt_regs uapi_pt_regs on !GLIBC
5 systems
5 6
6Upstream-Status: Pending 7Upstream-Status: Pending
7 8
8Signed-off-by: Khem Raj <raj.khem@gmail.com> 9Signed-off-by: Khem Raj <raj.khem@gmail.com>
9--- 10---
10 gdb/gdbserver/linux-ppc-low.c | 6 ++++++ 11 gdb/nat/ppc-linux.h | 6 ++++++
11 gdb/nat/ppc-linux.h | 6 ++++++ 12 gdbserver/linux-ppc-low.cc | 6 ++++++
12 2 files changed, 12 insertions(+) 13 2 files changed, 12 insertions(+)
13 14
14diff --git a/gdb/gdbserver/linux-ppc-low.c b/gdb/gdbserver/linux-ppc-low.c
15index 5d8d67bec2..ffcf65ab58 100644
16--- a/gdb/gdbserver/linux-ppc-low.c
17+++ b/gdb/gdbserver/linux-ppc-low.c
18@@ -23,7 +23,13 @@
19 #include "elf/common.h"
20 #include <sys/uio.h>
21 #include <elf.h>
22+#if !defined(__GLIBC__)
23+# define pt_regs uapi_pt_regs
24+#endif
25 #include <asm/ptrace.h>
26+#if !defined(__GLIBC__)
27+# undef pt_regs
28+#endif
29
30 #include "arch/ppc-linux-common.h"
31 #include "arch/ppc-linux-tdesc.h"
32diff --git a/gdb/nat/ppc-linux.h b/gdb/nat/ppc-linux.h 15diff --git a/gdb/nat/ppc-linux.h b/gdb/nat/ppc-linux.h
33index d937a65b69..1fd54b4a0e 100644 16index d937a65b69c..1fd54b4a0e0 100644
34--- a/gdb/nat/ppc-linux.h 17--- a/gdb/nat/ppc-linux.h
35+++ b/gdb/nat/ppc-linux.h 18+++ b/gdb/nat/ppc-linux.h
36@@ -18,7 +18,13 @@ 19@@ -18,7 +18,13 @@
@@ -47,3 +30,24 @@ index d937a65b69..1fd54b4a0e 100644
47 #include <asm/cputable.h> 30 #include <asm/cputable.h>
48 31
49 /* This sometimes isn't defined. */ 32 /* This sometimes isn't defined. */
33diff --git a/gdbserver/linux-ppc-low.cc b/gdbserver/linux-ppc-low.cc
34index 337d555aee7..5d518f37268 100644
35--- a/gdbserver/linux-ppc-low.cc
36+++ b/gdbserver/linux-ppc-low.cc
37@@ -23,7 +23,13 @@
38 #include "elf/common.h"
39 #include <sys/uio.h>
40 #include <elf.h>
41+#if !defined(__GLIBC__)
42+# define pt_regs uapi_pt_regs
43+#endif
44 #include <asm/ptrace.h>
45+#if !defined(__GLIBC__)
46+# undef pt_regs
47+#endif
48
49 #include "arch/ppc-linux-common.h"
50 #include "arch/ppc-linux-tdesc.h"
51--
522.29.2
53