| To: | linux-mips@linux-mips.org |
|---|---|
| Subject: | [PATCH] kgdb: Do not call fixup_exception |
| From: | Atsushi Nemoto <anemo@mba.ocn.ne.jp> |
| Date: | Mon, 11 Aug 2008 23:05:35 +0900 (JST) |
| Cc: | Jason Wessel <jason.wessel@windriver.com>, ralf@linux-mips.org |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| Sender: | linux-mips-bounce@linux-mips.org |
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 <anemo@mba.ocn.ne.jp>
---
This is a patch against current kernel.org 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> |
|---|---|---|
| ||
| Previous by Date: | update: MIPS-related unused config vars in kernel tree, Robert P. J. Day |
|---|---|
| Next by Date: | Re: [PATCH] kgdb: Do not call fixup_exception, Ralf Baechle |
| Previous by Thread: | update: MIPS-related unused config vars in kernel tree, Robert P. J. Day |
| Next by Thread: | Re: [PATCH] kgdb: Do not call fixup_exception, Ralf Baechle |
| Indexes: | [Date] [Thread] [Top] [All Lists] |