From owner-freebsd-current Thu May 21 18:58:08 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA27851 for freebsd-current-outgoing; Thu, 21 May 1998 18:58:08 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from freebie.lemis.com (freebie.lemis.com [139.130.136.133]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA27775 for ; Thu, 21 May 1998 18:57:52 -0700 (PDT) (envelope-from grog@lemis.com) Received: (from grog@localhost) by freebie.lemis.com (8.8.8/8.8.7) id LAA01141; Fri, 22 May 1998 11:27:47 +0930 (CST) (envelope-from grog) Message-ID: <19980522112746.W27201@freebie.lemis.com> Date: Fri, 22 May 1998 11:27:46 +0930 From: Greg Lehey To: joelh@gnu.org, freebsd-current@FreeBSD.ORG Subject: Re: Making a debugging kernel References: <199805220022.TAA18658@detlev.UUCP> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: <199805220022.TAA18658@detlev.UUCP>; from Joel Ray Holveck on Thu, May 21, 1998 at 07:22:17PM -0500 WWW-Home-Page: http://www.lemis.com/~grog Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 21 May 1998 at 19:22:17 -0500, Joel Ray Holveck wrote: > IIRC, the proper procedure for making a gdb-able kernel is roughly: > > # config -g KERNEL > # cd /sys/compile/KERNEL > # make > # cp kernel kernel-g > # strip -x kernel Change that to strip -d, otherwise you'll lose a lot of symbols needed by some utilities. > # make install > # rcp kernel-g host:/kernel > > However, lately this seems to have an adverse affect on nlist lookups; > savecore, top, and ps -u are all affected. (I get the same effects > with strip -d.) Did I mess a heads-up? No, that's what strip -x does to you. Greg -- See complete headers for address and phone numbers finger grog@lemis.com for PGP public key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message