Hopefully Simple Question on Debugging Kernel Modules

Doug Barton dougb at FreeBSD.org
Mon Feb 23 10:51:24 PST 2009


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


More information about the freebsd-current mailing list