Author: nbd Date: 2016-02-16 22:30:20 +0100 (Tue, 16 Feb 2016) New Revision: 48731
Modified: trunk/package/devel/gdb/patches/100-musl_fix.patch Log: gdb: fix powerpc build issues with musl Signed-off-by: Felix Fietkau <[email protected]> Modified: trunk/package/devel/gdb/patches/100-musl_fix.patch =================================================================== --- trunk/package/devel/gdb/patches/100-musl_fix.patch 2016-02-16 16:25:49 UTC (rev 48730) +++ trunk/package/devel/gdb/patches/100-musl_fix.patch 2016-02-16 21:30:20 UTC (rev 48731) @@ -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" + _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
