kdb
[Top] [All Lists]

Re: [PATCH] no kdb on panic

To: Olaf Hering <olh@xxxxxxx>
Subject: Re: [PATCH] no kdb on panic
From: Keith Owens <kaos@xxxxxxx>
Date: Wed, 27 Oct 2004 09:59:58 +1000
Cc: kdb@xxxxxxxxxxx
In-reply-to: Your message of "Tue, 26 Oct 2004 19:24:25 +0200." <20041026172425.GA14630@suse.de>
Sender: kdb-bounce@xxxxxxxxxxx
On Tue, 26 Oct 2004 19:24:25 +0200, 
Olaf Hering <olh@xxxxxxx> wrote:
>
>Why is kdb call anyway if the system panics?
>If its off, it has to be off.
>
>diff -purN linux-2.6.5/kdb/kdbmain.c linux-2.6.5.kdb/kdb/kdbmain.c
>--- linux-2.6.5/kdb/kdbmain.c   2004-10-26 11:35:07.000000000 +0200
>+++ linux-2.6.5.kdb/kdb/kdbmain.c       2004-10-26 19:09:12.703683875 +02=
>00
>@@ -3810,6 +3810,8 @@ kdb_cmd_init(void)
> static int
> kdb_panic(struct notifier_block *self, unsigned long command, void *ptr)
> {
>+       if (!kdb_on)
>+               return 1;
>        KDB_FLAG_SET(CATASTROPHIC);     /* kernel state is dubious now */
>        KDB_ENTER();
>        return(0);

To allow for automatic lkcd dumps with clean data that is captured by
kdb.  See linux/Documentation/kdb/dump.txt.  kdb must be called so kdb
can decide if it will drop into the debugger, take a dump or return.

---------------------------
Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe.
<Prev in Thread] Current Thread [Next in Thread>