Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Oct 2001 10:17:51 +0930
From:      Greg Lehey <grog@FreeBSD.org>
To:        John Baldwin <jhb@FreeBSD.org>
Cc:        Nate Williams <nate@yogotech.com>, FreeBSD-arch@FreeBSD.ORG, Dag-Erling Smorgrav <des@ofug.org>
Subject:   Re: /usr/src/sys/scripts?
Message-ID:  <20011019101751.D60412@wantadilla.lemis.com>
In-Reply-To: <XFMail.011018143327.jhb@FreeBSD.org>; from jhb@FreeBSD.org on Thu, Oct 18, 2001 at 02:33:27PM -0700
References:  <15311.9266.464139.798092@nomad.yogotech.com> <XFMail.011018143327.jhb@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday, 18 October 2001 at 14:33:27 -0700, John Baldwin wrote:
>
> On 18-Oct-01 Nate Williams wrote:
>>>> BSD/OS has a directory /usr/src/sys/scripts which contains macros for
>>>> kernel debugging.  I have a number of macros here that I've
>>>> accumulated over time, and I'd like to commit them.  I'd also like to
>>>> modify config(8) to install a .gdbinit in the kernel build directory
>>>> if debugging has been specified; the .gdbinit would load macros from
>>>> ../../scripts in order to help with kernel debugging.
>>>
>>> Wouldn't /var/crash be the logical place for .gdbinit?
>>
>> Yes, and no.  Yes because that's where it may be useful, and no because
>> it's a place for crashdumps, not for analyzing crashdumps.
>>
>> Most folks will probably not analyze the crashdumps, or they will copy
>> them off somewhere else so they can free up /var/crash for the next
>> crashdump, so I'd say stick .gdbinit somewhere else.
>
> I actually put .gdbinit* in my home directory and run gdb from the compile dir
> like so:
>
> cd /some/src/tree/sys/${ARCH}/compile/FOO
> gdb -k kernel.debug /var/crash/vmcore.XX

But that's because you never debug userland programs :-)

Greg
--
See complete headers for address and phone numbers

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




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