On Thu, Mar 30, 2006 at 03:52:41AM -0800, LiBei wrote: > > Then I did like this, it's no use either. > #gcc -D_KERNEL -c -g dummy.c > #ctfconvert -g -l LBL dummy.o > and I got the message? > ERROR:ctfconvert:GCC-generated stabs are unsupported. Use DWAF instead. > removing dummy.o
This works for me using /usr/sfw/bin/gcc on my system, which is "gcc (GCC) 3.4.3 (csl-sol210-3_4-20050802)". ctfconvert groks DWARF debugging information, so most likely you need to coax your version of GCC into generating DWARF with: # gcc -D_KERNEL -c -gdwarf-2 dummy.c - Eric -- Eric Schrock, Solaris Kernel Development http://blogs.sun.com/eschrock