From: Felix Fietkau Date: Tue, 16 Feb 2016 21:30:20 +0000 (+0000) Subject: gdb: fix powerpc build issues with musl X-Git-Url: http://git.ozo.com/?a=commitdiff_plain;h=9aab07ff46d8244a1e29a7caa5fb587cf7de32d9;p=openwrt-github%2F.git gdb: fix powerpc build issues with musl Signed-off-by: Felix Fietkau git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48731 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- 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 ++#undef pt_regs ++ + #include + + /* 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 ++#define pt_regs __pt_regs + #include ++#undef pt_regs + + #include "nat/ppc-linux.h" +