[Top] [All Lists]

[PATCH] kgdb: Do not call fixup_exception

Subject: [PATCH] kgdb: Do not call fixup_exception
From: Atsushi Nemoto <>
Date: Mon, 11 Aug 2008 23:05:35 +0900 (JST)
Cc: Jason Wessel <>,
Original-recipient: rfc822;
kgdb_mips_notify is called on IBE/DBE/FPE/BP/TRAP/RI exception.  None
of them need fixup.  And doing fixup for a breakpoint exception will
confuse gdb.

Signed-off-by: Atsushi Nemoto <>
This is a patch against current git tree.

diff --git a/arch/mips/kernel/kgdb.c b/arch/mips/kernel/kgdb.c
index c5a8b2d..cdaa4e3 100644
--- a/arch/mips/kernel/kgdb.c
+++ b/arch/mips/kernel/kgdb.c
@@ -190,9 +190,6 @@ static int kgdb_mips_notify(struct notifier_block *self, 
unsigned long cmd,
        struct pt_regs *regs = args->regs;
        int trap = (regs->cp0_cause & 0x7c) >> 2;
-       if (fixup_exception(regs))
-               return NOTIFY_DONE;
        /* Userpace events, ignore. */
        if (user_mode(regs))
                return NOTIFY_DONE;

<Prev in Thread] Current Thread [Next in Thread>