Date: Tue, 27 Jun 2000 20:50:30 +1000 (EST) From: Bruce Evans <bde@zeta.org.au> To: Warner Losh <imp@village.org> Cc: new-bus@FreeBSD.ORG Subject: Re: Debugger vs panic Message-ID: <Pine.BSF.4.21.0006272033140.6095-100000@besplex.bde.org> In-Reply-To: <200006270322.VAA30153@harmony.village.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 26 Jun 2000, Warner Losh wrote: > There's lots of places in newbus that programming errors trigger a > panic. This can make it very difficult to debug the probe/attach > routines. Is there any way that this can just dump you into the > debugger and then return out failing the call? Not in general. Code that calls panic() is generally not prepared for panic() to return. Apart from that, you can add a call to Debugger() near the start of panic(), and sometimes return from panic(). Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-new-bus" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0006272033140.6095-100000>