On Fri, Oct 23, 2009 at 03:25:49PM -0700, Peter Memishian wrote: > > > > 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" > > I'd be surprised if you needed anything more than STRIPSTABS_KEEP_STABS.
That's not what I experience with a snv_125 ON repository and the Sun Studio 12 dbx (and gdb). Those debuggers want dwarf format but the default in the ON build environment is stabs (see the -xdebugformat=stabs above). I just went through the thrashing process over this recently. The other env. settings are for various other compiler/linker issues I've dealt with which may or may not be necessary at this point but I keep them around because they don't seem to cause harm at this point. -- Will Fiveash Sun Microsystems Office x64079/512-401-1079 Austin, TX, 78727 (TZ=CST6CDT), USA Internal Solaris Kerberos/GSS/SASL website: http://kerberos.sfbay.sun.com http://opensolaris.org/os/project/kerberos/ _______________________________________________ tools-discuss mailing list tools-discuss@opensolaris.org