Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Feb 2003 18:42:00 +0100
From:      Aurelien Nephtali <aurelien.nephtali@wanadoo.fr>
To:        Bruce Evans <bde@zeta.org.au>
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:  <20030213174200.GA14220@nebula.wanadoo.fr>
In-Reply-To: <20030214041205.X4349-100000@gamplex.bde.org>
References:  <20030213125204.GA12333@nebula.wanadoo.fr> <20030214041205.X4349-100000@gamplex.bde.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--envbJBWh7q8WU6mo
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Feb 14, 2003 at 04:35:12AM +1100, Bruce Evans wrote:
> On Thu, 13 Feb 2003, Aurelien Nephtali wrote:
>=20
> > 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:'.
>=20
> 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).
>=20
> Workaround: use a serial console.

Serial consoles seem to be a good thing, only if a COM port is present ... =
:/
If someone has set up a parallel console ... mail me please :)

>=20
> 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 print=
f()
> instead of db_printf() from ddb commands, and make printf() work right wh=
en
> it is called from functions that are called from within ddb using ddb's
> call command (printf() should act like db_printf() then).

If this fix is correct and can be done without breaking everything, can som=
eone
do it please ?

-- Aurelien

--envbJBWh7q8WU6mo
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (FreeBSD)

iD8DBQE+S9joDNsbHbt8ok8RAhiiAJ4ymdGkLFG+hpWLScRGR/3bLY/QYwCgpyQg
wBOgude1/+eHlsLFTPh4uC8=
=WbCd
-----END PGP SIGNATURE-----

--envbJBWh7q8WU6mo--

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?20030213174200.GA14220>