]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/mn10300/kernel/traps.c
MN10300: Make the kernel jump into gdbstub on a BUG
[linux-2.6-omap-h63xx.git] / arch / mn10300 / kernel / traps.c
index 8b9dc6d9dcc6e34e555deccc7d1fb594b4a8ac9e..fcb9a03d46a8a33212b852354b9928b9c575a6e0 100644 (file)
@@ -391,7 +391,7 @@ static asmlinkage void unsupported_syscall(struct pt_regs *regs,
        if (code == EXCEP_SYSCALL15 && !user_mode(regs)) {
                if (report_bug(regs->pc, regs) == BUG_TRAP_TYPE_BUG) {
 #ifdef CONFIG_GDBSTUB
-                       __gdbstub_bug_trap();
+                       gdbstub_intercept(regs, code);
 #endif
                }
        }