100-musl_fix.patch 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. --- a/gdb/linux-nat.c
  2. +++ b/gdb/linux-nat.c
  3. @@ -17,6 +17,7 @@
  4. You should have received a copy of the GNU General Public License
  5. along with this program. If not, see <http://www.gnu.org/licenses/>. */
  6. +#include "stopcode.h"
  7. #include "defs.h"
  8. #include "inferior.h"
  9. #include "infrun.h"
  10. @@ -71,6 +72,10 @@
  11. #define SPUFS_MAGIC 0x23c9b64e
  12. #endif
  13. +#ifndef __SIGRTMIN
  14. +#define __SIGRTMIN SIGRTMIN
  15. +#endif
  16. +
  17. /* This comment documents high-level logic of this file.
  18. Waiting for events in sync mode
  19. --- /dev/null
  20. +++ b/gdb/stopcode.h
  21. @@ -0,0 +1,4 @@
  22. +#ifndef W_STOPCODE
  23. +#define W_STOPCODE(sig) ((sig) << 8 | 0x7f)
  24. +#endif
  25. +
  26. --- a/gdb/nat/ppc-linux.h
  27. +++ b/gdb/nat/ppc-linux.h
  28. @@ -18,7 +18,10 @@
  29. #ifndef PPC_LINUX_H
  30. #define PPC_LINUX_H 1
  31. +#define pt_regs __pt_regs
  32. #include <asm/ptrace.h>
  33. +#undef pt_regs
  34. +
  35. #include <asm/cputable.h>
  36. /* This sometimes isn't defined. */
  37. --- a/gdb/gdbserver/linux-ppc-low.c
  38. +++ b/gdb/gdbserver/linux-ppc-low.c
  39. @@ -21,7 +21,9 @@
  40. #include "linux-low.h"
  41. #include <elf.h>
  42. +#define pt_regs __pt_regs
  43. #include <asm/ptrace.h>
  44. +#undef pt_regs
  45. #include "nat/ppc-linux.h"