From owner-freebsd-current@FreeBSD.ORG Mon Feb 23 18:51:22 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1866710656D8 for ; Mon, 23 Feb 2009 18:51:22 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx22.fluidhosting.com [204.14.89.5]) by mx1.freebsd.org (Postfix) with ESMTP id 946588FC0A for ; Mon, 23 Feb 2009 18:51:21 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: (qmail 24979 invoked by uid 399); 23 Feb 2009 18:51:13 -0000 Received: from localhost (HELO ?192.168.0.19?) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTPAM; 23 Feb 2009 18:51:13 -0000 X-Originating-IP: 127.0.0.1 X-Sender: dougb@dougbarton.us Message-ID: <49A2F01E.4080409@FreeBSD.org> Date: Mon, 23 Feb 2009 10:51:10 -0800 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: Scott Long References: <5D267A3F22FD854F8F48B3D2B5238193394588D54D@IRVEXCHCCR01.corp.ad.broadcom.com> <200902231119.54925.jhb@freebsd.org> <49A2D86F.1000509@samsco.org> <200902231257.28060.jhb@freebsd.org> <49A2E3FE.2070106@samsco.org> In-Reply-To: <49A2E3FE.2070106@samsco.org> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: David Christensen , freebsd-current@freebsd.org Subject: Re: Hopefully Simple Question on Debugging Kernel Modules X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Feb 2009 18:51:24 -0000 Scott Long wrote: > Ah, I was still using 'CFLAGS+= -g". Thanks to you and Mr. Campbell for > the tip. IME in order to make sure I get debug symbols in everything (base and ports) I need to include both of these: CFLAGS+= -ggdb DEBUG_FLAGS+= -ggdb BTW, I've always used -ggdb out of habit, is using just -g preferable for some reason? hope this helps, Doug -- This .signature sanitized for your protection