From owner-freebsd-arch Thu Oct 18 14:33:41 2001 Delivered-To: freebsd-arch@freebsd.org Received: from femail36.sdc1.sfba.home.com (femail36.sdc1.sfba.home.com [24.254.60.26]) by hub.freebsd.org (Postfix) with ESMTP id 8FB7F37B401 for ; Thu, 18 Oct 2001 14:33:33 -0700 (PDT) Received: from laptop.baldwin.cx ([24.2.39.156]) by femail36.sdc1.sfba.home.com (InterMail vM.4.01.03.20 201-229-121-120-20010223) with ESMTP id <20011018213333.IAOR27661.femail36.sdc1.sfba.home.com@laptop.baldwin.cx>; Thu, 18 Oct 2001 14:33:33 -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: <15311.9266.464139.798092@nomad.yogotech.com> Date: Thu, 18 Oct 2001 14:33:27 -0700 (PDT) From: John Baldwin To: Nate Williams Subject: Re: /usr/src/sys/scripts? Cc: FreeBSD-arch@FreeBSD.ORG, Greg Lehey , Dag-Erling Smorgrav 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 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 -- 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