package/devel/gdb: Update to 7.11
[openwrt.git] / package / devel / gdb / patches / 100-musl_fix.patch
index d6dd7a0..09146c5 100644 (file)
@@ -8,9 +8,9 @@
  #include "defs.h"
  #include "inferior.h"
  #include "infrun.h"
-@@ -81,6 +82,10 @@
- # endif
- #endif /* HAVE_PERSONALITY */
+@@ -71,6 +72,10 @@
+ #define SPUFS_MAGIC 0x23c9b64e
+ #endif
  
 +#ifndef __SIGRTMIN
 +#define __SIGRTMIN SIGRTMIN
 +#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"