From owner-freebsd-arch Fri Oct 19 8:23:43 2001 Delivered-To: freebsd-arch@freebsd.org Received: from femail41.sdc1.sfba.home.com (femail41.sdc1.sfba.home.com [24.254.60.35]) by hub.freebsd.org (Postfix) with ESMTP id 4496637B409; Fri, 19 Oct 2001 08:23:41 -0700 (PDT) Received: from laptop.baldwin.cx ([24.2.39.156]) by femail41.sdc1.sfba.home.com (InterMail vM.4.01.03.20 201-229-121-120-20010223) with ESMTP id <20011019152340.FJRB5211.femail41.sdc1.sfba.home.com@laptop.baldwin.cx>; Fri, 19 Oct 2001 08:23:40 -0700 Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20011019101751.D60412@wantadilla.lemis.com> Date: Fri, 19 Oct 2001 08:23:35 -0700 (PDT) From: John Baldwin To: Greg Lehey Subject: Re: /usr/src/sys/scripts? Cc: Dag-Erling Smorgrav , FreeBSD-arch@FreeBSD.ORG, Nate Williams 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 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 -- 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