Andrew Wenlang Zhu wrote:
> I use mdb to debug kernel module on Solaris 10, and I can easily 
 > use mdb to print out data structure in IP or other modules that
 > are shipped with system. However, I can not print data structures
 > in my own kernel module, and mdb complains:
> no symbolic debug information available for module
> I am sure that I use -g flag during compiling. Do I need to do 
 > additional thing to make mdb recognize debug symbol in my kernel module?

Hi Andrew,
yes, you need to  run ctfconvert on your binary.

http://cvs.opensolaris.org/source/search?q=ctfconvert

Grab a copy of the onbld tools from genunix.org:

http://www.genunix.org/mirror/SUNWonbld-20051116.i386.tar.bz2

and then look for the .c.o target in usr/src/Makefile.master
for an example on how to use it.


best regards,
James C. McPherson
--
Solaris Datapath Engineering
Data Management Group
Sun Microsystems

Reply via email to