Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Apr 2002 13:21:28 +0200 (CEST)
From:      Nick Hibma <n_hibma@van-laarhoven.org>
To:        Rasputin <rasputin@shikima.mine.nu>
Cc:        "stable@freebsd.org" <stable@freebsd.org>
Subject:   Re: Status, USB/Olympus E-10
Message-ID:  <20020415131815.C36693-100000@heather.van-laarhoven.org>
In-Reply-To: <20020415120458.B3160@shikima.mine.nu>

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


> > Running with a debug kernel should be no problem and not much slower
> > than running with a production kernel.
>
> I thought the '-g' flag created two kernels,
> kernel and kernel.debug.
>
> I've always found I can run with kernel, then just pass kernel.debug to
> 'gdb -k' after a panic/reboot (see below).

That requires you to set up a dumpdev as well as compiling a debugging
kernel. But, yes, kernel.debug corresponds to /boot/kernel/kernel.

As a side note: If you get the panic PC you can do a

	gdb -k /sys/i386/KERNELNAME/kernel.debug
	dis 0xADDRESS

and get the disassembly and program listing of the address where things
went wrong.


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




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