1 From 1662a42e980c3f605000b23fda86ab24ceb69d32 Mon Sep 17 00:00:00 2001
2 From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3 Date: Sat, 3 Jun 2017 21:23:52 +0200
4 Subject: [PATCH] sh/ptrace: Define pt_{dsp,}regs uapi_pt_{dsp,}regs on !GLIBC
7 Fixes a pt_{dsp,}regs redefinition when building with the musl C library
11 http://git.yoctoproject.org/clean/cgit.cgi/poky/plain/meta/recipes-devtools/gdb/gdb/0004-ppc-ptrace-Define-pt_regs-uapi_pt_regs-on-GLIBC-syst.patch,
14 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
16 gdb/gdbserver/linux-sh-low.c | 8 ++++++++
17 1 file changed, 8 insertions(+)
19 diff --git a/gdb/gdbserver/linux-sh-low.c b/gdb/gdbserver/linux-sh-low.c
20 index 218d4d3..c4ada84 100644
21 --- a/gdb/gdbserver/linux-sh-low.c
22 +++ b/gdb/gdbserver/linux-sh-low.c
23 @@ -27,7 +27,15 @@ extern const struct target_desc *tdesc_sh;
27 +#if !defined(__GLIBC__)
28 +# define pt_regs uapi_pt_regs
29 +# define pt_dspregs uapi_pt_dspregs
31 #include <asm/ptrace.h>
32 +#if !defined(__GLIBC__)
37 #define sh_num_regs 41