Hopefully Simple Question on Debugging Kernel Modules
L Campbell
llc2w at virginia.edu
Mon Feb 23 09:19:26 PST 2009
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.
More information about the freebsd-current
mailing list