R3000 and kgdb
Has anyone used kgdb with an R3000 cpu? There was an obvious problem
ingdb-low.S (patch below) but I still cannot get kgdb to work.
Alice
mips/kernel/gdb-low.S Wed Jul 18 17:52:21 2001 renamed from mips/kernel/gdb-low.S.orig Wed Jul 18 18:47:57 2001 +3 -0
@@ -302,11 +302,18 @@ lw v1,GDB_FR_REG3(sp) lw v0,GDB_FR_REG2(sp) lw $1,GDB_FR_REG1(sp) +#if defined(CONFIG_CPU_R3000) + lw k0, GDB_FR_EPC(sp) + lw sp,GDB_FR_REG29(sp) /* Deallocate
stack */
+ jr k0
+ rfe
+#else
lw sp,GDB_FR_REG29(sp) /* Deallocate
stack */
.set mips3
eret
.set mips0
+#endif
.set at
.set reorder
END(trap_low)
Alice,
Quoted 2 lines · Alice Hennessy
Has anyone used kgdb with an R3000 cpu? There was an obvious problem
ingdb-low.S(patch below) but I still cannot get kgdb to work.
Your patch looks good, so I've applied it.
In the future please do not send patches using Netscape; it garbles patches such that they can only applied manually which would force me to refuse any larger patch. Some MUA like Mutt or Pine won't trash patches.
Ralf