Date: Fri, 14 Feb 2003 04:35:12 +1100 (EST) From: Bruce Evans <bde@zeta.org.au> To: Aurelien Nephtali <aurelien.nephtali@wanadoo.fr> Cc: Peter Wemm <peter@FreeBSD.org>, <src-committers@FreeBSD.org>, <cvs-src@FreeBSD.org>, <cvs-all@FreeBSD.org> Subject: Re: cvs commit: src/sys/kern kern_shutdown.c Message-ID: <20030214041205.X4349-100000@gamplex.bde.org> In-Reply-To: <20030213125204.GA12333@nebula.wanadoo.fr>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 13 Feb 2003, Aurelien Nephtali wrote: > It could be good now to log the backtrace :/ > When one occurs it goes nowhere so if you cannot copy it on the moment, it is > lost forever (without talking about stopping the console and using Page UP and > Page Down). Only the LOR is logged + 'Stack backtrace:'. db_print_backtrace() never really worked, since ddb uses db_printf() but ordinary printf() should be used (except when db_print_backtrace() is actually from within ddb). Workaround: use a serial console. I think the correct fix is to replace db_printf() by printf(). printf() can decide what to do more easily than callers of *printf() can (by checking db_active). This would also avoid the once common error of calling printf() instead of db_printf() from ddb commands, and make printf() work right when it is called from functions that are called from within ddb using ddb's call command (printf() should act like db_printf() then). Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030214041205.X4349-100000>