From owner-freebsd-current@FreeBSD.ORG Mon Feb 23 17:19:26 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 5B33B106566B for ; Mon, 23 Feb 2009 17:19:26 +0000 (UTC) (envelope-from llc2w@virginia.edu) Received: from fork8.mail.virginia.edu (fork8.mail.Virginia.EDU [128.143.2.178]) by mx1.freebsd.org (Postfix) with ESMTP id 227958FC1E for ; Mon, 23 Feb 2009 17:19:26 +0000 (UTC) (envelope-from llc2w@virginia.edu) Received: from localhost (localhost [127.0.0.1]) by fork8.mail.virginia.edu (Postfix) with ESMTP id 6AE541F5168; Mon, 23 Feb 2009 12:19:25 -0500 (EST) Received: from fork8.mail.virginia.edu ([127.0.0.1]) by localhost (fork8.mail.virginia.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20249-05; Mon, 23 Feb 2009 12:19:25 -0500 (EST) Received: from mail-gx0-f179.google.com (mail-gx0-f179.google.com [209.85.217.179]) by fork8.mail.virginia.edu (Postfix) with ESMTP id 3E8C11F4FDC; Mon, 23 Feb 2009 12:19:25 -0500 (EST) Received: by mail-gx0-f179.google.com with SMTP id 27so5539585gxk.0 for ; Mon, 23 Feb 2009 09:19:25 -0800 (PST) MIME-Version: 1.0 Received: by 10.231.19.204 with SMTP id c12mr6326332ibb.20.1235409564854; Mon, 23 Feb 2009 09:19:24 -0800 (PST) In-Reply-To: <49A2D86F.1000509@samsco.org> References: <5D267A3F22FD854F8F48B3D2B5238193394588D54D@IRVEXCHCCR01.corp.ad.broadcom.com> <200902231119.54925.jhb@freebsd.org> <49A2D86F.1000509@samsco.org> Date: Mon, 23 Feb 2009 12:19:24 -0500 Message-ID: <792298050902230919r2c3a479bqb8a192c80a73a72@mail.gmail.com> From: L Campbell To: Scott Long Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-UVA-Virus-Scanned: by amavisd-new at fork8.mail.virginia.edu 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 17:19:26 -0000 On Mon, Feb 23, 2009 at 12:10 PM, Scott Long wrote: > One thing that I've never figured out is how debugging symbols are handled > in module builds these days. If I go to /sys/modules/bce and > do 'make', it generates a .ko and explicitly strips it. I wind up > having to re-run the link command by hand so I get symbols. What is > the correct way to do this? Note that I'm not interested in answers > that involve "go to /usr/src and run make buildkernel" =-) Poking around in src/share/mk, it looks like if DEBUG_FLAGS is defined then STRIP isn't enabled.