390 lines
14 KiB
HTML
390 lines
14 KiB
HTML
<HTML>
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<!-- Created on March, 13 2002 by texi2html 1.64 -->
|
|
<!--
|
|
Written by: Lionel Cons <Lionel.Cons@cern.ch> (original author)
|
|
Karl Berry <karl@freefriends.org>
|
|
Olaf Bachmann <obachman@mathematik.uni-kl.de>
|
|
and many others.
|
|
Maintained by: Olaf Bachmann <obachman@mathematik.uni-kl.de>
|
|
Send bugs and suggestions to <texi2html@mathematik.uni-kl.de>
|
|
|
|
-->
|
|
<HEAD>
|
|
<TITLE>STABS: Stab Types</TITLE>
|
|
|
|
<META NAME="description" CONTENT="STABS: Stab Types">
|
|
<META NAME="keywords" CONTENT="STABS: Stab Types">
|
|
<META NAME="resource-type" CONTENT="document">
|
|
<META NAME="distribution" CONTENT="global">
|
|
<META NAME="Generator" CONTENT="texi2html 1.64">
|
|
|
|
</HEAD>
|
|
|
|
<BODY LANG="" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#800080" ALINK="#FF0000">
|
|
|
|
<A NAME="SEC67"></A>
|
|
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
|
|
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="stabs_7.html#SEC66"> < </A>]</TD>
|
|
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="stabs_8.html#SEC68"> > </A>]</TD>
|
|
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="stabs_7.html#SEC52"> << </A>]</TD>
|
|
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="stabs.html#SEC_Top"> Up </A>]</TD>
|
|
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="stabs_9.html#SEC70"> >> </A>]</TD>
|
|
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="stabs.html#SEC_Top">Top</A>]</TD>
|
|
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="stabs_toc.html#SEC_Contents">Contents</A>]</TD>
|
|
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="stabs_14.html#SEC90">Index</A>]</TD>
|
|
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="stabs_abt.html#SEC_About"> ? </A>]</TD>
|
|
</TR></TABLE>
|
|
<H1> A. Table of Stab Types </H1>
|
|
<!--docid::SEC67::-->
|
|
<P>
|
|
|
|
The following are all the possible values for the stab type field, for
|
|
a.out files, in numeric order. This does not apply to XCOFF, but
|
|
it does apply to stabs in sections (see section <A HREF="stabs_13.html#SEC87">F. Using Stabs in Their Own Sections</A>). Stabs in
|
|
ECOFF use these values but add 0x8f300 to distinguish them from non-stab
|
|
symbols.
|
|
</P><P>
|
|
|
|
The symbolic names are defined in the file <TT>`include/aout/stabs.def'</TT>.
|
|
</P><P>
|
|
|
|
<BLOCKQUOTE><TABLE BORDER=0 CELLSPACING=0>
|
|
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="stabs_8.html#SEC68">A.1 Non-Stab Symbol Types</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">Types from 0 to 0x1f</TD></TR>
|
|
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="stabs_8.html#SEC69">A.2 Stab Symbol Types</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">Types from 0x20 to 0xff</TD></TR>
|
|
</TABLE></BLOCKQUOTE>
|
|
<P>
|
|
|
|
<A NAME="Non-Stab Symbol Types"></A>
|
|
<HR SIZE="6">
|
|
<A NAME="SEC68"></A>
|
|
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
|
|
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="stabs_8.html#SEC67"> < </A>]</TD>
|
|
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="stabs_8.html#SEC69"> > </A>]</TD>
|
|
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="stabs_8.html#SEC67"> << </A>]</TD>
|
|
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="stabs_8.html#SEC67"> Up </A>]</TD>
|
|
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="stabs_9.html#SEC70"> >> </A>]</TD>
|
|
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="stabs.html#SEC_Top">Top</A>]</TD>
|
|
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="stabs_toc.html#SEC_Contents">Contents</A>]</TD>
|
|
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="stabs_14.html#SEC90">Index</A>]</TD>
|
|
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="stabs_abt.html#SEC_About"> ? </A>]</TD>
|
|
</TR></TABLE>
|
|
<H2> A.1 Non-Stab Symbol Types </H2>
|
|
<!--docid::SEC68::-->
|
|
<P>
|
|
|
|
The following types are used by the linker and assembler, not by stab
|
|
directives. Since this document does not attempt to describe aspects of
|
|
object file format other than the debugging format, no details are
|
|
given.
|
|
</P><P>
|
|
|
|
<DL COMPACT>
|
|
<DT><CODE>0x0 N_UNDF</CODE>
|
|
<DD>Undefined symbol
|
|
<P>
|
|
|
|
<DT><CODE>0x2 N_ABS</CODE>
|
|
<DD>File scope absolute symbol
|
|
<P>
|
|
|
|
<DT><CODE>0x3 N_ABS | N_EXT</CODE>
|
|
<DD>External absolute symbol
|
|
<P>
|
|
|
|
<DT><CODE>0x4 N_TEXT</CODE>
|
|
<DD>File scope text symbol
|
|
<P>
|
|
|
|
<DT><CODE>0x5 N_TEXT | N_EXT</CODE>
|
|
<DD>External text symbol
|
|
<P>
|
|
|
|
<DT><CODE>0x6 N_DATA</CODE>
|
|
<DD>File scope data symbol
|
|
<P>
|
|
|
|
<DT><CODE>0x7 N_DATA | N_EXT</CODE>
|
|
<DD>External data symbol
|
|
<P>
|
|
|
|
<DT><CODE>0x8 N_BSS</CODE>
|
|
<DD>File scope BSS symbol
|
|
<P>
|
|
|
|
<DT><CODE>0x9 N_BSS | N_EXT</CODE>
|
|
<DD>External BSS symbol
|
|
<P>
|
|
|
|
<DT><CODE>0x0c N_FN_SEQ</CODE>
|
|
<DD>Same as <CODE>N_FN</CODE>, for Sequent compilers
|
|
<P>
|
|
|
|
<DT><CODE>0x0a N_INDR</CODE>
|
|
<DD>Symbol is indirected to another symbol
|
|
<P>
|
|
|
|
<DT><CODE>0x12 N_COMM</CODE>
|
|
<DD>Common--visible after shared library dynamic link
|
|
<P>
|
|
|
|
<DT><CODE>0x14 N_SETA</CODE>
|
|
<DD><DT><CODE>0x15 N_SETA | N_EXT</CODE>
|
|
<DD>Absolute set element
|
|
<P>
|
|
|
|
<DT><CODE>0x16 N_SETT</CODE>
|
|
<DD><DT><CODE>0x17 N_SETT | N_EXT</CODE>
|
|
<DD>Text segment set element
|
|
<P>
|
|
|
|
<DT><CODE>0x18 N_SETD</CODE>
|
|
<DD><DT><CODE>0x19 N_SETD | N_EXT</CODE>
|
|
<DD>Data segment set element
|
|
<P>
|
|
|
|
<DT><CODE>0x1a N_SETB</CODE>
|
|
<DD><DT><CODE>0x1b N_SETB | N_EXT</CODE>
|
|
<DD>BSS segment set element
|
|
<P>
|
|
|
|
<DT><CODE>0x1c N_SETV</CODE>
|
|
<DD><DT><CODE>0x1d N_SETV | N_EXT</CODE>
|
|
<DD>Pointer to set vector
|
|
<P>
|
|
|
|
<DT><CODE>0x1e N_WARNING</CODE>
|
|
<DD>Print a warning message during linking
|
|
<P>
|
|
|
|
<DT><CODE>0x1f N_FN</CODE>
|
|
<DD>File name of a <TT>`.o'</TT> file
|
|
</DL>
|
|
<P>
|
|
|
|
<A NAME="Stab Symbol Types"></A>
|
|
<HR SIZE="6">
|
|
<A NAME="SEC69"></A>
|
|
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
|
|
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="stabs_8.html#SEC68"> < </A>]</TD>
|
|
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="stabs_9.html#SEC70"> > </A>]</TD>
|
|
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="stabs_8.html#SEC67"> << </A>]</TD>
|
|
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="stabs_8.html#SEC67"> Up </A>]</TD>
|
|
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="stabs_9.html#SEC70"> >> </A>]</TD>
|
|
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="stabs.html#SEC_Top">Top</A>]</TD>
|
|
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="stabs_toc.html#SEC_Contents">Contents</A>]</TD>
|
|
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="stabs_14.html#SEC90">Index</A>]</TD>
|
|
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="stabs_abt.html#SEC_About"> ? </A>]</TD>
|
|
</TR></TABLE>
|
|
<H2> A.2 Stab Symbol Types </H2>
|
|
<!--docid::SEC69::-->
|
|
<P>
|
|
|
|
The following symbol types indicate that this is a stab. This is the
|
|
full list of stab numbers, including stab types that are used in
|
|
languages other than C.
|
|
</P><P>
|
|
|
|
<DL COMPACT>
|
|
<DT><CODE>0x20 N_GSYM</CODE>
|
|
<DD>Global symbol; see <A HREF="stabs_4.html#SEC19">4.2 Global Variables</A>.
|
|
<P>
|
|
|
|
<DT><CODE>0x22 N_FNAME</CODE>
|
|
<DD>Function name (for BSD Fortran); see <A HREF="stabs_2.html#SEC12">2.5 Procedures</A>.
|
|
<P>
|
|
|
|
<DT><CODE>0x24 N_FUN</CODE>
|
|
<DD>Function name (see section <A HREF="stabs_2.html#SEC12">2.5 Procedures</A>) or text segment variable
|
|
(see section <A HREF="stabs_4.html#SEC22">4.5 Static Variables</A>).
|
|
<P>
|
|
|
|
<DT><CODE>0x26 N_STSYM</CODE>
|
|
<DD>Data segment file-scope variable; see <A HREF="stabs_4.html#SEC22">4.5 Static Variables</A>.
|
|
<P>
|
|
|
|
<DT><CODE>0x28 N_LCSYM</CODE>
|
|
<DD>BSS segment file-scope variable; see <A HREF="stabs_4.html#SEC22">4.5 Static Variables</A>.
|
|
<P>
|
|
|
|
<DT><CODE>0x2a N_MAIN</CODE>
|
|
<DD>Name of main routine; see <A HREF="stabs_2.html#SEC8">2.1 Main Program</A>.
|
|
<P>
|
|
|
|
<DT><CODE>0x2c N_ROSYM</CODE>
|
|
<DD>Variable in <CODE>.rodata</CODE> section; see <A HREF="stabs_4.html#SEC22">4.5 Static Variables</A>.
|
|
<P>
|
|
|
|
<DT><CODE>0x30 N_PC</CODE>
|
|
<DD>Global symbol (for Pascal); see <A HREF="stabs_11.html#SEC73">D.1 N_PC</A>.
|
|
<P>
|
|
|
|
<DT><CODE>0x32 N_NSYMS</CODE>
|
|
<DD>Number of symbols (according to Ultrix V4.0); see <A HREF="stabs_11.html#SEC74">D.2 N_NSYMS</A>.
|
|
<P>
|
|
|
|
<DT><CODE>0x34 N_NOMAP</CODE>
|
|
<DD>No DST map; see <A HREF="stabs_11.html#SEC75">D.3 N_NOMAP</A>.
|
|
<P>
|
|
|
|
<DT><CODE>0x38 N_OBJ</CODE>
|
|
<DD>Object file (Solaris2).
|
|
<P>
|
|
|
|
<DT><CODE>0x3c N_OPT</CODE>
|
|
<DD>Debugger options (Solaris2).
|
|
<P>
|
|
|
|
<DT><CODE>0x40 N_RSYM</CODE>
|
|
<DD>Register variable; see <A HREF="stabs_4.html#SEC20">4.3 Register Variables</A>.
|
|
<P>
|
|
|
|
<DT><CODE>0x42 N_M2C</CODE>
|
|
<DD>Modula-2 compilation unit; see <A HREF="stabs_11.html#SEC76">D.4 N_M2C</A>.
|
|
<P>
|
|
|
|
<DT><CODE>0x44 N_SLINE</CODE>
|
|
<DD>Line number in text segment; see <A HREF="stabs_2.html#SEC11">2.4 Line Numbers</A>.
|
|
<P>
|
|
|
|
<DT><CODE>0x46 N_DSLINE</CODE>
|
|
<DD>Line number in data segment; see <A HREF="stabs_2.html#SEC11">2.4 Line Numbers</A>.
|
|
<P>
|
|
|
|
<DT><CODE>0x48 N_BSLINE</CODE>
|
|
<DD>Line number in bss segment; see <A HREF="stabs_2.html#SEC11">2.4 Line Numbers</A>.
|
|
<P>
|
|
|
|
<DT><CODE>0x48 N_BROWS</CODE>
|
|
<DD>Sun source code browser, path to <TT>`.cb'</TT> file; see <A HREF="stabs_11.html#SEC77">D.5 N_BROWS</A>.
|
|
<P>
|
|
|
|
<DT><CODE>0x4a N_DEFD</CODE>
|
|
<DD>GNU Modula2 definition module dependency; see <A HREF="stabs_11.html#SEC78">D.6 N_DEFD</A>.
|
|
<P>
|
|
|
|
<DT><CODE>0x4c N_FLINE</CODE>
|
|
<DD>Function start/body/end line numbers (Solaris2).
|
|
<P>
|
|
|
|
<DT><CODE>0x50 N_EHDECL</CODE>
|
|
<DD>GNU C++ exception variable; see <A HREF="stabs_11.html#SEC79">D.7 N_EHDECL</A>.
|
|
<P>
|
|
|
|
<DT><CODE>0x50 N_MOD2</CODE>
|
|
<DD>Modula2 info "for imc" (according to Ultrix V4.0); see <A HREF="stabs_11.html#SEC80">D.8 N_MOD2</A>.
|
|
<P>
|
|
|
|
<DT><CODE>0x54 N_CATCH</CODE>
|
|
<DD>GNU C++ <CODE>catch</CODE> clause; see <A HREF="stabs_11.html#SEC81">D.9 N_CATCH</A>.
|
|
<P>
|
|
|
|
<DT><CODE>0x60 N_SSYM</CODE>
|
|
<DD>Structure of union element; see <A HREF="stabs_11.html#SEC82">D.10 N_SSYM</A>.
|
|
<P>
|
|
|
|
<DT><CODE>0x62 N_ENDM</CODE>
|
|
<DD>Last stab for module (Solaris2).
|
|
<P>
|
|
|
|
<DT><CODE>0x64 N_SO</CODE>
|
|
<DD>Path and name of source file; see <A HREF="stabs_2.html#SEC9">2.2 Paths and Names of the Source Files</A>.
|
|
<P>
|
|
|
|
<DT><CODE>0x80 N_LSYM</CODE>
|
|
<DD>Stack variable (see section <A HREF="stabs_4.html#SEC18">4.1 Automatic Variables Allocated on the Stack</A>) or type (see section <A HREF="stabs_5.html#SEC43">5.9 Giving a Type a Name</A>).
|
|
<P>
|
|
|
|
<DT><CODE>0x82 N_BINCL</CODE>
|
|
<DD>Beginning of an include file (Sun only); see <A HREF="stabs_2.html#SEC10">2.3 Names of Include Files</A>.
|
|
<P>
|
|
|
|
<DT><CODE>0x84 N_SOL</CODE>
|
|
<DD>Name of include file; see <A HREF="stabs_2.html#SEC10">2.3 Names of Include Files</A>.
|
|
<P>
|
|
|
|
<DT><CODE>0xa0 N_PSYM</CODE>
|
|
<DD>Parameter variable; see <A HREF="stabs_4.html#SEC24">4.7 Parameters</A>.
|
|
<P>
|
|
|
|
<DT><CODE>0xa2 N_EINCL</CODE>
|
|
<DD>End of an include file; see <A HREF="stabs_2.html#SEC10">2.3 Names of Include Files</A>.
|
|
<P>
|
|
|
|
<DT><CODE>0xa4 N_ENTRY</CODE>
|
|
<DD>Alternate entry point; see <A HREF="stabs_2.html#SEC15">2.8 Alternate Entry Points</A>.
|
|
<P>
|
|
|
|
<DT><CODE>0xc0 N_LBRAC</CODE>
|
|
<DD>Beginning of a lexical block; see <A HREF="stabs_2.html#SEC14">2.7 Block Structure</A>.
|
|
<P>
|
|
|
|
<DT><CODE>0xc2 N_EXCL</CODE>
|
|
<DD>Place holder for a deleted include file; see <A HREF="stabs_2.html#SEC10">2.3 Names of Include Files</A>.
|
|
<P>
|
|
|
|
<DT><CODE>0xc4 N_SCOPE</CODE>
|
|
<DD>Modula2 scope information (Sun linker); see <A HREF="stabs_11.html#SEC83">D.11 N_SCOPE</A>.
|
|
<P>
|
|
|
|
<DT><CODE>0xe0 N_RBRAC</CODE>
|
|
<DD>End of a lexical block; see <A HREF="stabs_2.html#SEC14">2.7 Block Structure</A>.
|
|
<P>
|
|
|
|
<DT><CODE>0xe2 N_BCOMM</CODE>
|
|
<DD>Begin named common block; see <A HREF="stabs_4.html#SEC21">4.4 Common Blocks</A>.
|
|
<P>
|
|
|
|
<DT><CODE>0xe4 N_ECOMM</CODE>
|
|
<DD>End named common block; see <A HREF="stabs_4.html#SEC21">4.4 Common Blocks</A>.
|
|
<P>
|
|
|
|
<DT><CODE>0xe8 N_ECOML</CODE>
|
|
<DD>Member of a common block; see <A HREF="stabs_4.html#SEC21">4.4 Common Blocks</A>.
|
|
<P>
|
|
|
|
<DT><CODE>0xea N_WITH</CODE>
|
|
<DD>Pascal <CODE>with</CODE> statement: type,,0,0,offset (Solaris2).
|
|
<P>
|
|
|
|
<DT><CODE>0xf0 N_NBTEXT</CODE>
|
|
<DD>Gould non-base registers; see <A HREF="stabs_11.html#SEC84">D.12 Non-base registers on Gould systems</A>.
|
|
<P>
|
|
|
|
<DT><CODE>0xf2 N_NBDATA</CODE>
|
|
<DD>Gould non-base registers; see <A HREF="stabs_11.html#SEC84">D.12 Non-base registers on Gould systems</A>.
|
|
<P>
|
|
|
|
<DT><CODE>0xf4 N_NBBSS</CODE>
|
|
<DD>Gould non-base registers; see <A HREF="stabs_11.html#SEC84">D.12 Non-base registers on Gould systems</A>.
|
|
<P>
|
|
|
|
<DT><CODE>0xf6 N_NBSTS</CODE>
|
|
<DD>Gould non-base registers; see <A HREF="stabs_11.html#SEC84">D.12 Non-base registers on Gould systems</A>.
|
|
<P>
|
|
|
|
<DT><CODE>0xf8 N_NBLCS</CODE>
|
|
<DD>Gould non-base registers; see <A HREF="stabs_11.html#SEC84">D.12 Non-base registers on Gould systems</A>.
|
|
</DL>
|
|
<P>
|
|
|
|
<A NAME="Symbol Descriptors"></A>
|
|
<HR SIZE="6">
|
|
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
|
|
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="stabs_8.html#SEC67"> << </A>]</TD>
|
|
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="stabs_9.html#SEC70"> >> </A>]</TD>
|
|
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="stabs.html#SEC_Top">Top</A>]</TD>
|
|
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="stabs_toc.html#SEC_Contents">Contents</A>]</TD>
|
|
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="stabs_14.html#SEC90">Index</A>]</TD>
|
|
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="stabs_abt.html#SEC_About"> ? </A>]</TD>
|
|
</TR></TABLE>
|
|
<BR>
|
|
<FONT SIZE="-1">
|
|
This document was generated
|
|
by <I>GDB Administrator</I> on <I>March, 13 2002</I>
|
|
using <A HREF="http://www.mathematik.uni-kl.de/~obachman/Texi2html
|
|
"><I>texi2html</I></A>
|
|
|
|
</BODY>
|
|
</HTML>
|