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 <[EMAIL PROTECTED]>
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.