Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Feb 2009 12:19:24 -0500
From:      L Campbell <llc2w@virginia.edu>
To:        Scott Long <scottl@samsco.org>
Cc:        David Christensen <davidch@broadcom.com>, freebsd-current@freebsd.org
Subject:   Re: Hopefully Simple Question on Debugging Kernel Modules
Message-ID:  <792298050902230919r2c3a479bqb8a192c80a73a72@mail.gmail.com>
In-Reply-To: <49A2D86F.1000509@samsco.org>
References:  <5D267A3F22FD854F8F48B3D2B5238193394588D54D@IRVEXCHCCR01.corp.ad.broadcom.com> <200902231119.54925.jhb@freebsd.org> <49A2D86F.1000509@samsco.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Feb 23, 2009 at 12:10 PM, Scott Long <scottl@samsco.org> 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?792298050902230919r2c3a479bqb8a192c80a73a72>