stabs_8.html   [plain text]


<HTML>
<HEAD>
<!-- This HTML file has been created by texi2html 1.51
     from /mnt/apple/gdb/source/gdb.apple/source/gdb/gdb/doc/stabs.texinfo on 23 November 1999 -->

<TITLE>STABS - Table of Stab Types</TITLE>
</HEAD>
<BODY>
Go to the <A HREF="stabs_1.html">first</A>, <A HREF="stabs_7.html">previous</A>, <A HREF="stabs_9.html">next</A>, <A HREF="stabs_14.html">last</A> section, <A HREF="stabs_toc.html">table of contents</A>.
<P><HR><P>


<H1><A NAME="SEC67" HREF="stabs_toc.html#TOC67">Table of Stab Types</A></H1>

<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">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>



<H2><A NAME="SEC68" HREF="stabs_toc.html#TOC68">Non-Stab Symbol Types</A></H2>

<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>
@tableindent=1.5in

</P>
<DL COMPACT>

<DT><CODE>0x0     N_UNDF</CODE>
<DD>
Undefined symbol

<DT><CODE>0x2     N_ABS</CODE>
<DD>
File scope absolute symbol

<DT><CODE>0x3     N_ABS | N_EXT</CODE>
<DD>
External absolute symbol

<DT><CODE>0x4     N_TEXT</CODE>
<DD>
File scope text symbol

<DT><CODE>0x5     N_TEXT | N_EXT</CODE>
<DD>
External text symbol

<DT><CODE>0x6     N_DATA</CODE>
<DD>
File scope data symbol

<DT><CODE>0x7     N_DATA | N_EXT</CODE>
<DD>
External data symbol

<DT><CODE>0x8     N_BSS</CODE>
<DD>
File scope BSS symbol

<DT><CODE>0x9     N_BSS | N_EXT</CODE>
<DD>
External BSS symbol

<DT><CODE>0x0c    N_FN_SEQ</CODE>
<DD>
Same as <CODE>N_FN</CODE>, for Sequent compilers

<DT><CODE>0x0a    N_INDR</CODE>
<DD>
Symbol is indirected to another symbol

<DT><CODE>0x12    N_COMM</CODE>
<DD>
Common--visible after shared library dynamic link

<DT><CODE>0x14 N_SETA</CODE>
<DD>
<DT><CODE>0x15 N_SETA | N_EXT</CODE>
<DD>
Absolute set element

<DT><CODE>0x16 N_SETT</CODE>
<DD>
<DT><CODE>0x17 N_SETT | N_EXT</CODE>
<DD>
Text segment set element

<DT><CODE>0x18 N_SETD</CODE>
<DD>
<DT><CODE>0x19 N_SETD | N_EXT</CODE>
<DD>
Data segment set element

<DT><CODE>0x1a N_SETB</CODE>
<DD>
<DT><CODE>0x1b N_SETB | N_EXT</CODE>
<DD>
BSS segment set element

<DT><CODE>0x1c N_SETV</CODE>
<DD>
<DT><CODE>0x1d N_SETV | N_EXT</CODE>
<DD>
Pointer to set vector

<DT><CODE>0x1e N_WARNING</CODE>
<DD>
Print a warning message during linking

<DT><CODE>0x1f    N_FN</CODE>
<DD>
File name of a <TT>`.o'</TT> file
</DL>



<H2><A NAME="SEC69" HREF="stabs_toc.html#TOC69">Stab Symbol Types</A></H2>

<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>
<DL COMPACT>

<DT><CODE>0x20     N_GSYM</CODE>
<DD>
Global symbol; see section <A HREF="stabs_4.html#SEC19">Global Variables</A>.

<DT><CODE>0x22     N_FNAME</CODE>
<DD>
Function name (for BSD Fortran); see section <A HREF="stabs_2.html#SEC12">Procedures</A>.

<DT><CODE>0x24     N_FUN</CODE>
<DD>
Function name (see section <A HREF="stabs_2.html#SEC12">Procedures</A>) or text segment variable
(see section <A HREF="stabs_4.html#SEC22">Static Variables</A>).

<DT><CODE>0x26 N_STSYM</CODE>
<DD>
Data segment file-scope variable; see section <A HREF="stabs_4.html#SEC22">Static Variables</A>.

<DT><CODE>0x28 N_LCSYM</CODE>
<DD>
BSS segment file-scope variable; see section <A HREF="stabs_4.html#SEC22">Static Variables</A>.

<DT><CODE>0x2a N_MAIN</CODE>
<DD>
Name of main routine; see section <A HREF="stabs_2.html#SEC8">Main Program</A>.

<DT><CODE>0x2c N_ROSYM</CODE>
<DD>
Variable in <CODE>.rodata</CODE> section; see section <A HREF="stabs_4.html#SEC22">Static Variables</A>.

<DT><CODE>0x30     N_PC</CODE>
<DD>
Global symbol (for Pascal); see section <A HREF="stabs_11.html#SEC73">N_PC</A>.

<DT><CODE>0x32     N_NSYMS</CODE>
<DD>
Number of symbols (according to Ultrix V4.0); see section <A HREF="stabs_11.html#SEC74">N_NSYMS</A>.

<DT><CODE>0x34     N_NOMAP</CODE>
<DD>
No DST map; see section <A HREF="stabs_11.html#SEC75">N_NOMAP</A>.

<DT><CODE>0x38 N_OBJ</CODE>
<DD>
Object file (Solaris2).

<DT><CODE>0x3c N_OPT</CODE>
<DD>
Debugger options (Solaris2).

<DT><CODE>0x40     N_RSYM</CODE>
<DD>
Register variable; see section <A HREF="stabs_4.html#SEC20">Register Variables</A>.

<DT><CODE>0x42     N_M2C</CODE>
<DD>
Modula-2 compilation unit; see section <A HREF="stabs_11.html#SEC76">N_M2C</A>.

<DT><CODE>0x44     N_SLINE</CODE>
<DD>
Line number in text segment; see section <A HREF="stabs_2.html#SEC11">Line Numbers</A>.

<DT><CODE>0x46     N_DSLINE</CODE>
<DD>
Line number in data segment; see section <A HREF="stabs_2.html#SEC11">Line Numbers</A>.

<DT><CODE>0x48     N_BSLINE</CODE>
<DD>
Line number in bss segment; see section <A HREF="stabs_2.html#SEC11">Line Numbers</A>.

<DT><CODE>0x48     N_BROWS</CODE>
<DD>
Sun source code browser, path to <TT>`.cb'</TT> file; see section <A HREF="stabs_11.html#SEC77">N_BROWS</A>.

<DT><CODE>0x4a     N_DEFD</CODE>
<DD>
GNU Modula2 definition module dependency; see section <A HREF="stabs_11.html#SEC78">N_DEFD</A>.

<DT><CODE>0x4c N_FLINE</CODE>
<DD>
Function start/body/end line numbers (Solaris2).

<DT><CODE>0x50     N_EHDECL</CODE>
<DD>
GNU C++ exception variable; see section <A HREF="stabs_11.html#SEC79">N_EHDECL</A>.

<DT><CODE>0x50     N_MOD2</CODE>
<DD>
Modula2 info "for imc" (according to Ultrix V4.0); see section <A HREF="stabs_11.html#SEC80">N_MOD2</A>.

<DT><CODE>0x54     N_CATCH</CODE>
<DD>
GNU C++ <CODE>catch</CODE> clause; see section <A HREF="stabs_11.html#SEC81">N_CATCH</A>.

<DT><CODE>0x60     N_SSYM</CODE>
<DD>
Structure of union element; see section <A HREF="stabs_11.html#SEC82">N_SSYM</A>.

<DT><CODE>0x62 N_ENDM</CODE>
<DD>
Last stab for module (Solaris2).

<DT><CODE>0x64     N_SO</CODE>
<DD>
Path and name of source file; see section <A HREF="stabs_2.html#SEC9">Paths and Names of the Source Files</A>.

<DT><CODE>0x80 N_LSYM</CODE>
<DD>
Stack variable (see section <A HREF="stabs_4.html#SEC18">Automatic Variables Allocated on the Stack</A>) or type (see section <A HREF="stabs_5.html#SEC43">Giving a Type a Name</A>).

<DT><CODE>0x82     N_BINCL</CODE>
<DD>
Beginning of an include file (Sun only); see section <A HREF="stabs_2.html#SEC10">Names of Include Files</A>.

<DT><CODE>0x84     N_SOL</CODE>
<DD>
Name of include file; see section <A HREF="stabs_2.html#SEC10">Names of Include Files</A>.

<DT><CODE>0xa0     N_PSYM</CODE>
<DD>
Parameter variable; see section <A HREF="stabs_4.html#SEC24">Parameters</A>.

<DT><CODE>0xa2     N_EINCL</CODE>
<DD>
End of an include file; see section <A HREF="stabs_2.html#SEC10">Names of Include Files</A>.

<DT><CODE>0xa4     N_ENTRY</CODE>
<DD>
Alternate entry point; see section <A HREF="stabs_2.html#SEC15">Alternate Entry Points</A>.

<DT><CODE>0xc0     N_LBRAC</CODE>
<DD>
Beginning of a lexical block; see section <A HREF="stabs_2.html#SEC14">Block Structure</A>.

<DT><CODE>0xc2     N_EXCL</CODE>
<DD>
Place holder for a deleted include file; see section <A HREF="stabs_2.html#SEC10">Names of Include Files</A>.

<DT><CODE>0xc4     N_SCOPE</CODE>
<DD>
Modula2 scope information (Sun linker); see section <A HREF="stabs_11.html#SEC83">N_SCOPE</A>.

<DT><CODE>0xe0     N_RBRAC</CODE>
<DD>
End of a lexical block; see section <A HREF="stabs_2.html#SEC14">Block Structure</A>.

<DT><CODE>0xe2     N_BCOMM</CODE>
<DD>
Begin named common block; see section <A HREF="stabs_4.html#SEC21">Common Blocks</A>.

<DT><CODE>0xe4     N_ECOMM</CODE>
<DD>
End named common block; see section <A HREF="stabs_4.html#SEC21">Common Blocks</A>.

<DT><CODE>0xe8     N_ECOML</CODE>
<DD>
Member of a common block; see section <A HREF="stabs_4.html#SEC21">Common Blocks</A>.

<DT><CODE>0xea N_WITH</CODE>
<DD>
Pascal <CODE>with</CODE> statement: type,,0,0,offset (Solaris2).

<DT><CODE>0xf0     N_NBTEXT</CODE>
<DD>
Gould non-base registers; see section <A HREF="stabs_11.html#SEC84">Non-base registers on Gould systems</A>.

<DT><CODE>0xf2     N_NBDATA</CODE>
<DD>
Gould non-base registers; see section <A HREF="stabs_11.html#SEC84">Non-base registers on Gould systems</A>.

<DT><CODE>0xf4     N_NBBSS</CODE>
<DD>
Gould non-base registers; see section <A HREF="stabs_11.html#SEC84">Non-base registers on Gould systems</A>.

<DT><CODE>0xf6     N_NBSTS</CODE>
<DD>
Gould non-base registers; see section <A HREF="stabs_11.html#SEC84">Non-base registers on Gould systems</A>.

<DT><CODE>0xf8     N_NBLCS</CODE>
<DD>
Gould non-base registers; see section <A HREF="stabs_11.html#SEC84">Non-base registers on Gould systems</A>.
</DL>

<P>
@tableindent=.8in

</P>
<P><HR><P>
Go to the <A HREF="stabs_1.html">first</A>, <A HREF="stabs_7.html">previous</A>, <A HREF="stabs_9.html">next</A>, <A HREF="stabs_14.html">last</A> section, <A HREF="stabs_toc.html">table of contents</A>.
</BODY>
</HTML>