Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 May 2008 17:06:53 -0700
From:      "David Christensen" <davidch@broadcom.com>
To:        "Alexander Sack" <pisymbol@gmail.com>
Cc:        "freebsd-net@freebsd.org" <freebsd-net@freebsd.org>
Subject:   RE: Not All Symbols Present in a Loadable Kernel Module
Message-ID:  <5D267A3F22FD854F8F48B3D2B523819324F09D6896@IRVEXCHCCR01.corp.ad.broadcom.com>
In-Reply-To: <3c0b01820805021315i482fe0acg3e9238a2f412770e@mail.gmail.com>
References:  <5D267A3F22FD854F8F48B3D2B523819324F09D65FA@IRVEXCHCCR01.corp.ad.broadcom.com> <3c0b01820805021315i482fe0acg3e9238a2f412770e@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> > I'm trying to build the "bce" driver as a kernel module under
> RELENG_7 but I'm
> >  finding that not all of the functions in the driver are exported as
> symbols.  This
> >  makes it difficult to "call" a function from ddb because I get the
> error "Symbol
> >  not found".  I'm building and loading the driver from
> /usr/src/sys/modules/bce.
> >  What am I doing wrong?  How can I get all functions in the driver
> exported as
> >  symbols usable by the debugger?
>
> Are you building a debug kernel or regular kernel?  Have you turned on
> debug symbols?
>
> makeoptions     DEBUG=3D-g                # Build kernel with gdb(1)
> debug symbols
>
> Just a quick thought...I'm assuming these symbols are listed under
> your final kernel image (nm it etc.).

Yes, I'm building a debug kernel.  I have the line listed above as well
as the following:

options KDB
options DDB
options GDB
options INVARIANTS
options INVARIANT_SUPPORT
options WITNESS
options WITNESS_SKIPSPIN

Dave




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