|
@@ -295,6 +295,10 @@ static int check_and_rewind_pc(char *put_str, char *arg)
|
|
/* On x86 a breakpoint stop requires it to be decremented */
|
|
/* On x86 a breakpoint stop requires it to be decremented */
|
|
if (addr + 1 == kgdbts_regs.ip)
|
|
if (addr + 1 == kgdbts_regs.ip)
|
|
offset = -1;
|
|
offset = -1;
|
|
|
|
+#elif defined(CONFIG_SUPERH)
|
|
|
|
+ /* On SUPERH a breakpoint stop requires it to be decremented */
|
|
|
|
+ if (addr + 2 == kgdbts_regs.pc)
|
|
|
|
+ offset = -2;
|
|
#endif
|
|
#endif
|
|
if (strcmp(arg, "silent") &&
|
|
if (strcmp(arg, "silent") &&
|
|
instruction_pointer(&kgdbts_regs) + offset != addr) {
|
|
instruction_pointer(&kgdbts_regs) + offset != addr) {
|
|
@@ -305,6 +309,8 @@ static int check_and_rewind_pc(char *put_str, char *arg)
|
|
#ifdef CONFIG_X86
|
|
#ifdef CONFIG_X86
|
|
/* On x86 adjust the instruction pointer if needed */
|
|
/* On x86 adjust the instruction pointer if needed */
|
|
kgdbts_regs.ip += offset;
|
|
kgdbts_regs.ip += offset;
|
|
|
|
+#elif defined(CONFIG_SUPERH)
|
|
|
|
+ kgdbts_regs.pc += offset;
|
|
#endif
|
|
#endif
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|