400-mips-coredump.patch-2.4.23-29 864 B

123456789101112131415161718192021222324252627282930
  1. Sometime around 2.4.22-23, the mips pt_regs.h fields were reordered, breaking
  2. coredump handling by gdb for current kernels. Update the hardcoded constants
  3. to reflect the change.
  4. --
  5. diff -urN gdb-6.3.50.20050915/gdb/mips-linux-tdep.c gdb-6.3.50.20050915-patched/gdb/mips-linux-tdep.c
  6. --- gdb-6.3.50.20050915/gdb/mips-linux-tdep.c 2005-04-02 16:59:34.000000000 -0600
  7. +++ gdb-6.3.50.20050915-patched/gdb/mips-linux-tdep.c 2005-09-15 22:33:13.000000000 -0500
  8. @@ -54,12 +54,22 @@
  9. #define EF_REG0 6
  10. #define EF_REG31 37
  11. +
  12. +#if 0
  13. #define EF_LO 38
  14. #define EF_HI 39
  15. #define EF_CP0_EPC 40
  16. #define EF_CP0_BADVADDR 41
  17. #define EF_CP0_STATUS 42
  18. #define EF_CP0_CAUSE 43
  19. +#else
  20. +#define EF_CP0_STATUS 38
  21. +#define EF_LO 39
  22. +#define EF_HI 40
  23. +#define EF_CP0_BADVADDR 41
  24. +#define EF_CP0_CAUSE 42
  25. +#define EF_CP0_EPC 43
  26. +#endif
  27. #define EF_SIZE 180