Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Oct 2001 08:23:35 -0700 (PDT)
From:      John Baldwin <jhb@FreeBSD.org>
To:        Greg Lehey <grog@FreeBSD.org>
Cc:        Dag-Erling Smorgrav <des@ofug.org>, FreeBSD-arch@FreeBSD.ORG, Nate Williams <nate@yogotech.com>
Subject:   Re: /usr/src/sys/scripts?
Message-ID:  <XFMail.011019082335.jhb@FreeBSD.org>
In-Reply-To: <20011019101751.D60412@wantadilla.lemis.com>

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

On 19-Oct-01 Greg Lehey wrote:
> 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 :-)

Hrm..  not often these days, sure enough. :)

-- 

John Baldwin <jhb@FreeBSD.org> -- http://www.FreeBSD.org/~jhb/
PGP Key: http://www.baldwin.cx/~john/pgpkey.asc
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/

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?XFMail.011019082335.jhb>