Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Mar 2002 14:43:30 -0700
From:      "Kenneth D. Merry" <ken@kdm.org>
To:        Josef Karthauser <joe@tao.org.uk>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: Kernel debugger and X11.
Message-ID:  <20020319144329.A44361@panzer.kdm.org>
In-Reply-To: <20020319213623.GA7786@genius.tao.org.uk>; from joe@tao.org.uk on Tue, Mar 19, 2002 at 09:36:23PM %2B0000
References:  <20020319201528.GI4989@genius.tao.org.uk> <20020319143448.A44276@panzer.kdm.org> <20020319213623.GA7786@genius.tao.org.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Mar 19, 2002 at 21:36:23 +0000, Josef Karthauser wrote:
> On Tue, Mar 19, 2002 at 02:34:48PM -0700, Kenneth D. Merry wrote:
> > 
> > > Does anyone have any working practices around this problem?  I'm sure
> > > that I'm not the only one of us with it.
> > 
> > I would recommend just enabling crash dumps; then it doesn't matter if
> > you're in X when the machine panics, and you can get a stack trace and look
> > at things once the machine reboots.
> > 
> 
> I suppose.  Is it possible to switch the debugger off via a sysctl,
> without compiling it out?

From sys/kern/kern_shutdown.c:

#ifdef DDB
#ifdef DDB_UNATTENDED
int debugger_on_panic = 0;
#else
int debugger_on_panic = 1;
#endif
SYSCTL_INT(_debug, OID_AUTO, debugger_on_panic, CTLFLAG_RW,
        &debugger_on_panic, 0, "Run debugger on kernel panic");
#endif

So you should be able to turn it off with debug.debugger_on_panic.

From a grep through the tree, it looks like only i386 and powerpc look
at that variable.

Ken
-- 
Kenneth Merry
ken@kdm.org

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020319144329.A44361>