From owner-cvs-all Tue Aug 21 22: 5:23 2001 Delivered-To: cvs-all@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id EEEA937B408; Tue, 21 Aug 2001 22:05:18 -0700 (PDT) (envelope-from bde@zeta.org.au) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id PAA14498; Wed, 22 Aug 2001 15:05:17 +1000 Date: Wed, 22 Aug 2001 15:05:11 +1000 (EST) From: Bruce Evans X-X-Sender: To: John Baldwin Cc: , Subject: Re: cvs commit: src/sys/kern kern_shutdown.c In-Reply-To: <200108212255.f7LMtKG43424@freefall.freebsd.org> Message-ID: <20010822150135.X5785-100000@besplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, 21 Aug 2001, John Baldwin wrote: > jhb 2001/08/21 15:55:20 PDT > > Modified files: > sys/kern kern_shutdown.c > Log: > Allow one to restart from a panic in DDB by clearing the panicstr > variable to NULL. Note that since panic() is marked with __dead2, this > has somewhat unpredictable results at best. Such as "never" working? :-) On i386's panic() has no function epilogue or return statement, so you have to do these manually to get it to return. Then the caller may be missing stack cleanups... The easiest workaround is to declare panic() as returning, but this will cause lots of compiler warnings. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message