150-mips64.patch 883 B

1234567891011121314151617181920212223242526272829303132
  1. From e92f8932ef488de2a56db4299131ce6a4eb170bd Mon Sep 17 00:00:00 2001
  2. From: Khem Raj <[email protected]>
  3. Date: Wed, 23 Mar 2016 06:30:09 +0000
  4. Subject: [PATCH] mips-linux-nat: Define _ABIO32 if not defined
  5. This helps building gdb on mips64 on musl, since
  6. musl does not provide sgidefs.h this define is
  7. only defined when GCC is using o32 ABI, in that
  8. case gcc emits it as built-in define and hence
  9. it works ok for mips32
  10. Signed-off-by: Khem Raj <[email protected]>
  11. ---
  12. Upstream-Status: Pending
  13. gdb/mips-linux-nat.c | 5 +++++
  14. 1 file changed, 5 insertions(+)
  15. --- a/gdb/mips-linux-nat.c
  16. +++ b/gdb/mips-linux-nat.c
  17. @@ -42,6 +42,11 @@
  18. #define PTRACE_GET_THREAD_AREA 25
  19. #endif
  20. +/* musl does not define and relies on compiler built-in macros for it */
  21. +#ifndef _ABIO32
  22. +#define _ABIO32 1
  23. +#endif
  24. +
  25. class mips_linux_nat_target final : public linux_nat_trad_target
  26. {
  27. public: