Re: Hopefully Simple Question on Debugging Kernel Modules

From: L Campbell <llc2w_at_virginia.edu>
Date: Mon, 23 Feb 2009 12:19:24 -0500
On Mon, Feb 23, 2009 at 12:10 PM, Scott Long <scottl_at_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.
Received on Mon Feb 23 2009 - 16:19:26 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:42 UTC