Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Oct 2001 14:33:27 -0700 (PDT)
From:      John Baldwin <jhb@FreeBSD.org>
To:        Nate Williams <nate@yogotech.com>
Cc:        FreeBSD-arch@FreeBSD.ORG, Greg Lehey <grog@lemis.com>, Dag-Erling Smorgrav <des@ofug.org>
Subject:   Re: /usr/src/sys/scripts?
Message-ID:  <XFMail.011018143327.jhb@FreeBSD.org>
In-Reply-To: <15311.9266.464139.798092@nomad.yogotech.com>

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

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

-- 

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.011018143327.jhb>