From owner-freebsd-arch Thu Oct 18 20:19:32 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 6EA9B37B403 for ; Thu, 18 Oct 2001 20:19:29 -0700 (PDT) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id 41BCC6AB08; Fri, 19 Oct 2001 12:49:27 +0930 (CST) Date: Fri, 19 Oct 2001 12:49:27 +0930 From: Greg Lehey To: Peter Wemm Cc: FreeBSD-arch@FreeBSD.ORG Subject: Re: /usr/src/sys/scripts? Message-ID: <20011019124926.Q60412@wantadilla.lemis.com> References: <20011018101828.A88312@wantadilla.lemis.com> <20011019025829.B18163803@overcee.netplex.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011019025829.B18163803@overcee.netplex.com.au>; from peter@wemm.org on Thu, Oct 18, 2001 at 07:58:29PM -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 19:58:29 -0700, Peter Wemm wrote: > Greg Lehey 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. > > Just add a Makefile.* rule to add a ln -s from .gdbinit to > $S/../../scripts/.gdbinit. No need to add more config(8) hacks. Well, cp, not ln, and certainly not ln -s. You'll sometimes need to change things, like the serial port number. And yes, that occurred to me as well, and I agree it's the easiest way. 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