🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gdb.bug
Article #8836

Re: GDB 4.6 on Solaris 2.0 (bug report)

#8836
From: gnu
Date: Mon, 26 Oct 1992 04:02
25 lines
1904 bytes
The symbols that "nm" on Solaris is printing for you are not debugging
symbols.  The debugging symbols are off in a different section of the
file, which Sun provides no way to print.

The "objdump" program that comes with binutils-2.0 will print these if
you give it the --stabs option.

My guess is that you are using the Sun C compiler and forgetting to
pass it the -xs option.  (Either that, or you are using *any* compiler
and forgetting to pass it -g.)  Sun's compiler has a convoluted way to
make the debug symbols fail to appear in the object file.  The
compiler takes a -xs flag, which causes it to pass a -s flag to the
assembler.  This causes the assembler to put debug information from
.stabs pseudo-ops into the .stabs-excl section rather than the .stabs
section.  The linker has been hacked to know that a section called
.stabs-excl should not appear in the final linked executable.

The point of this is apparently to speed up linking while complicating
the debugger.  There's a .stabs-index section (which is built in
either case) which has pointers to the .o files that were linked to
make up the executable.  Their debugger reads the debug information
from the individual .o files.  We have not yet modified GDB to do
this.

	John Gilmore
Technical Details
Message-ID: <9210262002.AA11929@cygnus.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!sdd.hp.com!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!cygnus.com!gnu
References: <9210261738.AA06387@rice-chex>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f5053,98547167d87e4fdc,start
X-Google-Attributes: gidf5053,public
X-Google-ArrivalTime: 1992-10-26 12:52:42 PST
Newsgroups: gnu.gdb.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!sdd.hp.com!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!cygnus.com!gnu
From: gnu@cygnus.com
Subject: Re: GDB 4.6 on Solaris 2.0 (bug report)
Message-ID: <9210262002.AA11929@cygnus.com>
Sender: gnulists@ai.mit.edu
Organization: GNUs Not Usenet
References: <9210261738.AA06387@rice-chex>
Distribution: gnu
Date: Mon, 26 Oct 1992 04:02:20 GMT
Approved: bug-gdb@prep.ai.mit.edu
Lines: 26