diff options
author | Khem Raj <raj.khem@gmail.com> | 2020-02-14 07:42:39 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-02-15 10:26:42 +0000 |
commit | cb1c0307a8283e7ef3f9d0faa5553b5747f0ac23 (patch) | |
tree | 3f0fd00a3c35650e2cc120cfc2554d1a6c5d7565 /meta/recipes-devtools/gdb/gdb/0003-ppc-ptrace-Define-pt_regs-uapi_pt_regs-on-GLIBC-syst.patch | |
parent | b05234524a6db7b764a1bb987f3bca44789a58ca (diff) | |
download | poky-cb1c0307a8283e7ef3f9d0faa5553b5747f0ac23.tar.gz |
gdb: Upgrade to 9.1 release
Drop security patches which are now in 9.1 already
Forward port rest of patches to 9.1
Detailed changes [1]
[1] https://lists.gnu.org/archive/html/info-gnu/2020-02/msg00008.html
(From OE-Core rev: 4c1c01e023b123c86a418fdeddb69be097deef86)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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.patch | 49 |
1 files changed, 49 insertions, 0 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 new file mode 100644 index 0000000000..c4bab7bb1a --- /dev/null +++ b/meta/recipes-devtools/gdb/gdb/0003-ppc-ptrace-Define-pt_regs-uapi_pt_regs-on-GLIBC-syst.patch | |||
@@ -0,0 +1,49 @@ | |||
1 | From d5817bcf2f7313699bfa85b41220d862db327664 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sat, 30 Apr 2016 18:32:14 -0700 | ||
4 | Subject: [PATCH] ppc/ptrace: Define pt_regs uapi_pt_regs on !GLIBC systems | ||
5 | |||
6 | Upstream-Status: Pending | ||
7 | |||
8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
9 | --- | ||
10 | gdb/gdbserver/linux-ppc-low.c | 6 ++++++ | ||
11 | gdb/nat/ppc-linux.h | 6 ++++++ | ||
12 | 2 files changed, 12 insertions(+) | ||
13 | |||
14 | diff --git a/gdb/gdbserver/linux-ppc-low.c b/gdb/gdbserver/linux-ppc-low.c | ||
15 | index 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" | ||
32 | diff --git a/gdb/nat/ppc-linux.h b/gdb/nat/ppc-linux.h | ||
33 | index d937a65b69..1fd54b4a0e 100644 | ||
34 | --- a/gdb/nat/ppc-linux.h | ||
35 | +++ b/gdb/nat/ppc-linux.h | ||
36 | @@ -18,7 +18,13 @@ | ||
37 | #ifndef NAT_PPC_LINUX_H | ||
38 | #define NAT_PPC_LINUX_H | ||
39 | |||
40 | +#if !defined(__GLIBC__) | ||
41 | +# define pt_regs uapi_pt_regs | ||
42 | +#endif | ||
43 | #include <asm/ptrace.h> | ||
44 | +#if !defined(__GLIBC__) | ||
45 | +# undef pt_regs | ||
46 | +#endif | ||
47 | #include <asm/cputable.h> | ||
48 | |||
49 | /* This sometimes isn't defined. */ | ||