diff options
author | Felix Fietkau <nbd@openwrt.org> | 2016-02-16 21:30:20 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2016-02-16 21:30:20 +0000 |
commit | 09997e41aede5057cbd999bb0e0471bdb7c6688b (patch) | |
tree | 82d5a1172937a1de38ad57bb7038984f0ea241ea /package/devel/gdb | |
parent | dbd35c7ca9e6654b2e6951b8687530b0d08348d2 (diff) | |
download | upstream-09997e41aede5057cbd999bb0e0471bdb7c6688b.tar.gz upstream-09997e41aede5057cbd999bb0e0471bdb7c6688b.tar.bz2 upstream-09997e41aede5057cbd999bb0e0471bdb7c6688b.zip |
gdb: fix powerpc build issues with musl
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 48731
Diffstat (limited to 'package/devel/gdb')
-rw-r--r-- | package/devel/gdb/patches/100-musl_fix.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/package/devel/gdb/patches/100-musl_fix.patch b/package/devel/gdb/patches/100-musl_fix.patch index c0c1e0aee5..afe9dc7aac 100644 --- a/package/devel/gdb/patches/100-musl_fix.patch +++ b/package/devel/gdb/patches/100-musl_fix.patch @@ -26,3 +26,28 @@ +#define W_STOPCODE(sig) ((sig) << 8 | 0x7f) +#endif + +--- a/gdb/nat/ppc-linux.h ++++ b/gdb/nat/ppc-linux.h +@@ -18,7 +18,10 @@ + #ifndef PPC_LINUX_H + #define PPC_LINUX_H 1 + ++#define pt_regs __pt_regs + #include <asm/ptrace.h> ++#undef pt_regs ++ + #include <asm/cputable.h> + + /* This sometimes isn't defined. */ +--- a/gdb/gdbserver/linux-ppc-low.c ++++ b/gdb/gdbserver/linux-ppc-low.c +@@ -21,7 +21,9 @@ + #include "linux-low.h" + + #include <elf.h> ++#define pt_regs __pt_regs + #include <asm/ptrace.h> ++#undef pt_regs + + #include "nat/ppc-linux.h" + |