On Fri, Oct 23, 2009 at 01:29:57PM -0700, 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 ?

Does this help?

dmake "$@" COPTFLAG='-g' \
        COPTFLAG64='-g' \
        DEBUGFORMAT="-xdebugformat=dwarf" \
        XFFLAG='' \
        sparc_C_PICFLAGS='-K PIC' \
        STRIPSTABS_KEEP_STABS="1"
-- 
Will Fiveash
Sun Microsystems Inc.
http://opensolaris.org/os/project/kerberos/
Sent from mutt, a sweet ASCII MUA
_______________________________________________
tools-discuss mailing list
tools-discuss@opensolaris.org

Reply via email to