kdb
[Top] [All Lists]

[PATCH 012/18] kdb-add-oops-breakpoint

To: undisclosed-recipients:;
Subject: [PATCH 012/18] kdb-add-oops-breakpoint
From: quilt@xxxxxxxxxxxxxxxx
Date: Thu Jul 10 16:25:03 EDT 2008
Resent-date: Thu, 10 Jul 2008 16:53:37 -0400
Resent-from: joe.korty@xxxxxxxx
Resent-message-id: <200807102053.m6AKrb8N031243@gamx.iccur.com>
Resent-to: kdb@xxxxxxxxxxx
Sender: kdb-bounce@xxxxxxxxxxx
Add a KDB breakpoint to the OOPs path.

In a debug kernel, every OOPs should stop in KDB so that
the OOPS can be examined by the operator in detail.

Signed-off-by: Joe Korty <joe.korty@xxxxxxxx>

Index: 2.6.26-rc9/lib/bug.c
===================================================================
--- 2.6.26-rc9.orig/lib/bug.c   2008-07-10 12:12:51.000000000 -0400
+++ 2.6.26-rc9/lib/bug.c        2008-07-10 13:32:44.000000000 -0400
@@ -41,6 +41,10 @@
 #include <linux/bug.h>
 #include <linux/sched.h>
 
+#ifdef CONFIG_KDB
+#include <linux/kdb.h>
+#endif
+
 extern const struct bug_entry __start___bug_table[], __stop___bug_table[];
 
 #ifdef CONFIG_MODULES
@@ -162,5 +166,9 @@
                       "[verbose debug info unavailable]\n",
                       (void *)bugaddr);
 
+#ifdef CONFIG_KDB
+       kdb(KDB_REASON_ENTER, 0, regs);
+#endif
+
        return BUG_TRAP_TYPE_BUG;
 }
---------------------------
Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe.
<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH 012/18] kdb-add-oops-breakpoint, quilt <=