Markus Moeller wrote:
> I 'd like to debug a opensolaris library. I uise the nightly build process, 
> but I can't find an option to create a library with debug information. I 
> always get 
> 
> file libXX.so
> libXX.so: ELF 32-bit LSB dynamic lib 80386 Version 1, dynamically linked, not 
> stripped, no debugging information available
> 
> I can see that during the build -g is used 
> /src/build/usr/src/tools/proto/opt/onbld/bin/i386/cw -_cc -O -K pic -xspace 
> -Xa -xildoff -errtags=yes -errwarn=%all -erroff=E_EMPTY_TRANSLATION_UNIT 
> -erroff=E_STATEMENT_NOT_REACHED -xc99=%none -W0,-xglobalstatic -g -xc99=%none 
> -W0,-noglobal -_gcc=-fno-dwarf2-indirect-strings -xdebugformat=stabs -xF=%all 
> -DTEXT_DOMAIN=\"SUNW_OST_NETRPC\" -D_TS_ERRNO 
> -I/src/build/proto/root_i386/usr/include ....
> 
> Which Makefile do I need to change/update ?

If you look at a "make -n" I think you'll see some postprocessing
that removes the stab (debugging) information.

Being an mdb(1) user, I don't do anything special, but
through the grapevine I've heard that options such as:

STRIPSTABS_KEEP_STABS="1" COPTFLAG='-g' XFFLAG='' CTFCONVERT_O="" 
CTFMERGE_LIB="" dmake

might leave the object the way you want for dbx use.

There's probably some better written instructions that describe
what to do, but I don't know where they might be.

Sorry if this is a bit hacky, but it's all I know.

-- 

Rod.

Reply via email to