1.1 --- a/patches/gdb/6.5/400-mips-coredump.patch-2.4.23-29 Wed Oct 28 12:03:38 2009 +0100
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,28 +0,0 @@
1.4 -Sometime around 2.4.22-23, the mips pt_regs.h fields were reordered, breaking
1.5 -coredump handling by gdb for current kernels. Update the hardcoded constants
1.6 -to reflect the change.
1.7 ---- gdb-6.2.1/gdb/mips-linux-tdep.c-orig 2004-10-29 14:23:55.000000000 -0500
1.8 -+++ gdb-6.2.1/gdb/mips-linux-tdep.c 2004-10-29 14:26:44.000000000 -0500
1.9 -@@ -53,12 +53,22 @@
1.10 -
1.11 - #define EF_REG0 6
1.12 - #define EF_REG31 37
1.13 -+
1.14 -+#if 0
1.15 - #define EF_LO 38
1.16 - #define EF_HI 39
1.17 - #define EF_CP0_EPC 40
1.18 - #define EF_CP0_BADVADDR 41
1.19 - #define EF_CP0_STATUS 42
1.20 - #define EF_CP0_CAUSE 43
1.21 -+#else
1.22 -+#define EF_CP0_STATUS 38
1.23 -+#define EF_LO 39
1.24 -+#define EF_HI 40
1.25 -+#define EF_CP0_BADVADDR 41
1.26 -+#define EF_CP0_CAUSE 42
1.27 -+#define EF_CP0_EPC 43
1.28 -+#endif
1.29 -
1.30 - #define EF_SIZE 180
1.31 -