From owner-freebsd-arch Thu Oct 18 17:47:59 2001 Delivered-To: freebsd-arch@freebsd.org Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by hub.freebsd.org (Postfix) with ESMTP id BDA5537B403; Thu, 18 Oct 2001 17:47:53 -0700 (PDT) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id D62906AB08; Fri, 19 Oct 2001 10:17:51 +0930 (CST) Date: Fri, 19 Oct 2001 10:17:51 +0930 From: Greg Lehey To: John Baldwin Cc: Nate Williams , FreeBSD-arch@FreeBSD.ORG, Dag-Erling Smorgrav Subject: Re: /usr/src/sys/scripts? Message-ID: <20011019101751.D60412@wantadilla.lemis.com> References: <15311.9266.464139.798092@nomad.yogotech.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from jhb@FreeBSD.org on Thu, Oct 18, 2001 at 02:33:27PM -0700 Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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