* Constants:: Constants
* Variables::
* Types:: Type definitions
-* Symbol Tables:: Symbol information in symbol tables
+* Symbol tables:: Symbol information in symbol tables
* Cplusplus:: Appendixes:
-* Stab Types:: Symbol types in a.out files
-* Symbol Descriptors:: Table of Symbol Descriptors
-* Type Descriptors:: Table of Symbol Descriptors
+* Stab types:: Symbol types in a.out files
+* Symbol descriptors:: Table of Symbol descriptors
+* Type descriptors:: Table of Symbol descriptors
* Expanded reference:: Reference information by stab type
* Questions:: Questions and anomolies
-* XCOFF-differences:: Differences between GNU stabs in a.out
+* XCOFF differences:: Differences between GNU stabs in a.out
and GNU stabs in XCOFF
-* Sun-differences:: Differences between GNU stabs and Sun
+* Sun differences:: Differences between GNU stabs and Sun
native stabs
-* Stabs-in-ELF:: Stabs in an ELF file.
+* Stabs in ELF:: Stabs in an ELF file.
* Symbol Types Index:: Index of symbolic stab symbol type names.
@end menu
@end ifinfo
This document is one of the few published sources of documentation on
stabs. It is believed to be comprehensive for stabs used by C. The
-lists of symbol descriptors (@pxref{Symbol Descriptors}) and type
-descriptors (@pxref{Type Descriptors}) are believed to be completely
+lists of symbol descriptors (@pxref{Symbol descriptors}) and type
+descriptors (@pxref{Type descriptors}) are believed to be completely
comprehensive. Stabs for COBOL-specific features and for variant
records (used by Pascal and Modula-2) are poorly documented here.
@menu
* Flow:: Overview of debugging information flow
-* Stabs Format:: Overview of stab format
-* String Field:: The @code{.stabs} @var{string} field
+* Stabs format:: Overview of stab format
+* String field:: The @code{.stabs} @var{string} field
* C example:: A simple example in C source
* Assembly code:: The simple example at the assembly level
@end menu
table. Debuggers use the symbol and string tables in the executable as
a source of debugging information about the program.
-@node Stabs Format
+@node Stabs format
@section Overview of stab format
There are three overall formats for stab assembler directives,
@c what is the correct term for "current file location"? My AIX
@c assembler manual calls it "the value of the current location counter".
For @code{.stabn} and @code{.stabd}, there is no @var{string} (the
-@code{n_strx} field is zero; see @ref{Symbol Tables}). For
+@code{n_strx} field is zero; see @ref{Symbol tables}). For
@code{.stabd}, the @var{value} field is implicit and has the value of
the current file location. For @code{.stabx}, the @var{sdb-type} field
is unused for stabs and can always be set to zero.
to an ordinary symbol). Each valid type number defines a different stab
type; further, the stab type defines the exact interpretation of, and
possible values for, any remaining @var{string}, @var{desc}, or
-@var{value} fields present in the stab. @xref{Stab Types}, for a list
+@var{value} fields present in the stab. @xref{Stab types}, for a list
in numeric order of the valid @var{type} field values for stab directives.
-@node String Field
+@node String field
@section The @code{.stabs} @var{string} field
For @code{.stabs} the @var{string} field holds the meat of the
character that tells more specifically what kind of symbol the stab
represents. If the @var{symbol-descriptor} is omitted, but type
information follows, then the stab represents a local variable. For a
-list of symbol descriptors, see @ref{Symbol Descriptors}. The @samp{c}
+list of symbol descriptors, see @ref{Symbol descriptors}. The @samp{c}
symbol descriptor is an exception in that it is not followed by type
information. @xref{Constants}.
non-numeric then it is a @var{type-descriptor}, and tells what kind of
type is about to be defined. Any other values following the
@var{type-descriptor} vary, depending on the @var{type-descriptor}.
-@xref{Type Descriptors}, for a list of @var{type-descriptor} values. If
+@xref{Type descriptors}, for a list of @var{type-descriptor} values. If
a number follows the @samp{=} then the number is a @var{type-reference}.
For a full description of types, @ref{Types}.
@end example
@node Program structure
-@chapter Encoding for the structure of the program
+@chapter Encoding the structure of the program
The elements of the program structure that stabs encode include the name
of the main function, the names of the source and include files, the
blocks of code.
@menu
-* Main Program:: Indicate what the main program is
-* Source Files:: The path and name of the source file
-* Include Files:: Names of include files
-* Line Numbers::
+* Main program:: Indicate what the main program is
+* Source files:: The path and name of the source file
+* Include files:: Names of include files
+* Line numbers::
* Procedures::
-* Nested Procedures::
-* Block Structure::
+* Nested procedures::
+* Block structure::
@end menu
-@node Main Program
-@section Main Program
+@node Main program
+@section Main program
@deffn @code{.stabs} N_MAIN
@findex N_MAIN
function.
@end deffn
-@node Source Files
+@node Source files
@section Paths and names of the source files
@deffn @code{.stabs} N_SO
directive which assembles to a standard COFF @code{.file} symbol;
explaining this in detail is outside the scope of this document.
-@node Include Files
+@node Include files
@section Names of include files
There are several schemes for dealing with include files: the
file. @code{C_BINCL} and @code{C_EINCL} do not nest.
@end deffn
-@node Line Numbers
-@section Line Numbers
+@node Line numbers
+@section Line numbers
@deffn @code{.stabn} N_SLINE
@findex N_SLINE
type of the function, followed by the arguments, each preceded by
@samp{;}, as in a stab with symbol descriptor @samp{f} or @samp{F}.
This use of symbol descriptor @samp{P} can be distinguished from its use
-for register parameters (@pxref{Register Parameters}) by the fact that it has
+for register parameters (@pxref{Register parameters}) by the fact that it has
symbol type @code{N_FUN}.
The AIX documentation also defines symbol descriptor @samp{J} as an
its block structure.
@end deffn
-@node Nested Procedures
-@section Nested Procedures
+@node Nested procedures
+@section Nested procedures
For any of the @code{N_FUN} symbol descriptors, after the symbol
descriptor and the type information is optionally a scope specifier.
.stabs "foo:F1",36,0,0,_foo
@end example
-@node Block Structure
-@section Block Structure
+@node Block structure
+@section Block structure
@deffn @code{.stabn} N_LBRAC
@deffnx @code{.stabn} N_RBRAC
@item e @var{type-information} , @var{value}
Constant whose value can be represented as integral.
@var{type-information} is the type of the constant, as it would appear
-after a symbol descriptor (@pxref{String Field}). @var{value} is the
+after a symbol descriptor (@pxref{String field}). @var{value} is the
numeric value of the constant. GDB 4.9 does not actually get the right
value if @var{value} does not fit in a host @code{int}, but it does not
do anything violent, and future debuggers could be extended to accept
@item S @var{type-information} , @var{elements} , @var{bits} , @var{pattern}
Set constant. @var{type-information} is the type of the constant, as it
-would appear after a symbol descriptor (@pxref{String Field}).
+would appear after a symbol descriptor (@pxref{String field}).
@var{elements} is the number of elements in the set (does this means
how many bits of @var{pattern} are actually used, which would be
redundant with the type, or perhaps the number of bits set in
statically, or as arguments to a function.
@menu
-* Stack Variables:: Variables allocated on the stack.
-* Global Variables:: Variables used by more than one source file.
+* Stack variables:: Variables allocated on the stack.
+* Global variables:: Variables used by more than one source file.
* Register variables:: Variables in registers.
-* Common Blocks:: Variables statically allocated together.
+* Common blocks:: Variables statically allocated together.
* Statics:: Variables local to one source file.
* Parameters:: Variables for arguments to functions.
@end menu
-@node Stack Variables
-@section Automatic Variables Allocated on the Stack
+@node Stack variables
+@section Automatic variables allocated on the stack
If a variable's scope is local to a function and its lifetime is only as
long as that function executes (C calls such variables
The @var{value} of the stab is the offset of the variable within the
local variables. On most machines this is an offset from the frame
pointer and is negative. The location of the stab specifies which block
-it is defined in; see @ref{Block Structure}.
+it is defined in; see @ref{Block structure}.
For example, the following C code:
@end example
@xref{Procedures} for more information on the @code{N_FUN} stab, and
-@ref{Block Structure} for more information on the @code{N_LBRAC} and
+@ref{Block structure} for more information on the @code{N_LBRAC} and
@code{N_RBRAC} stabs.
@end deffn
-@node Global Variables
-@section Global Variables
+@node Global variables
+@section Global variables
@deffn @code{.stabs} N_GSYM
@findex N_GSYM
A variable whose scope is not specific to just one source file is
represented by the @samp{G} symbol descriptor. These stabs use the
@code{N_GSYM} stab type. The type information for the stab
-(@pxref{String Field}) gives the type of the variable.
+(@pxref{String field}) gives the type of the variable.
For example, the following source code:
the other bss symbols.
@end deffn
-@node Common Blocks
-@section Common Blocks
+@node Common blocks
+@section Common blocks
A common block is a statically allocated section of memory which can be
referred to by several source files. It may contain several variables.
@end deffn
@node Statics
-@section Static Variables
+@section Static variables
Initialized static variables are represented by the @samp{S} and
@samp{V} symbol descriptors. @samp{S} means file scope static, and
@end deffn
@menu
-* Register Parameters::
-* Local Variable Parameters::
-* Reference Parameters::
-* Conformant Arrays::
+* Register parameters::
+* Local variable parameters::
+* Reference parameters::
+* Conformant arrays::
@end menu
-@node Register Parameters
+@node Register parameters
@subsection Passing parameters in registers
If the parameter is passed in a register, then traditionally there are
access"; I don't know the source for this information), but I don't know
details or what compilers or debuggers use it, if any (not GDB or GCC).
It is not clear to me whether this case needs to be dealt with
-differently than parameters passed by reference (@pxref{Reference Parameters}).
+differently than parameters passed by reference (@pxref{Reference parameters}).
-@node Local Variable Parameters
+@node Local variable parameters
@subsection Storing parameters as local variables
There is a case similar to an argument in a register, which is an
relative to the arguments; on some machines those are the same thing,
but not on all.
-@node Reference Parameters
+@node Reference parameters
@subsection Passing parameters by reference
If the parameter is passed by reference (e.g., Pascal @code{VAR}
respectively. I believe @samp{a} is an AIX invention; @samp{v} is
supported by all stabs-using systems as far as I know.
-@node Conformant Arrays
+@node Conformant arrays
@subsection Passing conformant array parameters
@c Is this paragraph correct? It is based on piecing together patchy
stored.
@node Types
-@chapter Defining Types
+@chapter Defining types
The examples so far have described types as references to previously
defined types, or defined in terms of subranges of or pointers to
@menu
* Builtin types:: Integers, floating point, void, etc.
-* Miscellaneous Types:: Pointers, sets, files, etc.
+* Miscellaneous types:: Pointers, sets, files, etc.
* Cross-references:: Referring to a type not yet defined.
* Subranges:: A type with a specific range.
* Arrays:: An aggregate type of same-typed elements.
* Structures:: An aggregate type of different-typed elements.
* Typedefs:: Giving a type a name.
* Unions:: Different types sharing storage.
-* Function Types::
+* Function types::
@end menu
@node Builtin types
formats. The following sections describe each of these formats.
@menu
-* Traditional Builtin Types:: Put on your seatbelts and prepare for kludgery
-* Builtin Type Descriptors:: Builtin types with special type descriptors
-* Negative Type Numbers:: Builtin types using negative type numbers
+* Traditional builtin types:: Put on your seatbelts and prepare for kludgery
+* Builtin type descriptors:: Builtin types with special type descriptors
+* Negative type numbers:: Builtin types using negative type numbers
@end menu
-@node Traditional Builtin Types
-@subsection Traditional Builtin types
+@node Traditional builtin types
+@subsection Traditional builtin types
This is the traditional, convoluted method for defining builtin types.
There are several classes of such type definitions: integer, floating
point, and @code{void}.
@menu
-* Traditional Integer Types::
-* Traditional Other Types::
+* Traditional integer types::
+* Traditional other types::
@end menu
-@node Traditional Integer Types
-@subsubsection Traditional Integer Types
+@node Traditional integer types
+@subsubsection Traditional integer types
Often types are defined as subranges of themselves. If the bounding values
fit within an @code{int}, then they are given normally. For example:
subrange, the type should be a subrange of itself. I'm not sure whether
this is the case for Convex.
-@node Traditional Other Types
-@subsubsection Traditional Other Types
+@node Traditional other types
+@subsubsection Traditional other types
If the upper bound of a subrange is 0 and the lower bound is positive,
the type is a floating point type, and the lower bound of the subrange
I'm not sure how a boolean type is represented.
-@node Builtin Type Descriptors
-@subsection Defining Builtin Types using Builtin Type Descriptors
+@node Builtin type descriptors
+@subsection Defining builtin types using builtin type descriptors
This is the method used by Sun's @code{acc} for defining builtin types.
These are the type descriptors to define builtin types:
of bits in the type.
Note that type descriptor @samp{b} used for builtin types conflicts with
-its use for Pascal space types (@pxref{Miscellaneous Types}); they can
+its use for Pascal space types (@pxref{Miscellaneous types}); they can
be distinguished because the character following the type descriptor
will be a digit, @samp{(}, or @samp{-} for a Pascal space type, or
@samp{u} or @samp{s} for a builtin type.
@item w
Documented by AIX to define a wide character type, but their compiler
-actually uses negative type numbers (@pxref{Negative Type Numbers}).
+actually uses negative type numbers (@pxref{Negative type numbers}).
@item R @var{fp-type} ; @var{bytes} ;
Define a floating point type. @var{fp-type} has one of the following values:
@item g @var{type-information} ; @var{nbits}
Documented by AIX to define a floating type, but their compiler actually
-uses negative type numbers (@pxref{Negative Type Numbers}).
+uses negative type numbers (@pxref{Negative type numbers}).
@item c @var{type-information} ; @var{nbits}
Documented by AIX to define a complex type, but their compiler actually
-uses negative type numbers (@pxref{Negative Type Numbers}).
+uses negative type numbers (@pxref{Negative type numbers}).
@end table
The C @code{void} type is defined as a signed integral type 0 bits long:
I'm not sure how a boolean type is represented.
-@node Negative Type Numbers
-@subsection Negative Type numbers
+@node Negative type numbers
+@subsection Negative type numbers
This is the method used in XCOFF for defining builtin types.
Since the debugger knows about the builtin types anyway, the idea of
Unicode?).
@end table
-@node Miscellaneous Types
-@section Miscellaneous Types
+@node Miscellaneous types
+@section Miscellaneous types
These type descriptors are for types that are built into languages and
are derived from the fundamental types.
Pascal space type. This is documented by IBM; what does it mean?
This use of the @samp{b} type descriptor can be distinguished
-from its use for builtin integral types (@pxref{Builtin Type
-Descriptors}) because the character following the type descriptor is
+from its use for builtin integral types (@pxref{Builtin type
+descriptors}) because the character following the type descriptor is
always a digit, @samp{(}, or @samp{-}.
@item B @var{type-information}
Multiple instance type. The type seems to composed of @var{length}
repetitions of @var{type-information}, for example @code{character*3} is
represented by @samp{M-2;3}, where @samp{-2} is a reference to a
-character type (@pxref{Negative Type Numbers}). I'm not sure how this
+character type (@pxref{Negative type numbers}). I'm not sure how this
differs from an array. This appears to be a Fortran feature.
@var{length} is a bound, like those in range types; see @ref{Subranges}.
that it identifies the module; I don't understand whether the name of
the type given here is always just the same as the name we are giving
it, or whether this type descriptor is used with a nameless stab
-(@pxref{String Field}), or what. The symbol ends with @samp{;}.
+(@pxref{String field}), or what. The symbol ends with @samp{;}.
@node Subranges
@section Subrange types
There is no bound.
@end table
-Subranges are also used for builtin types; see @ref{Traditional Builtin Types}.
+Subranges are also used for builtin types; see @ref{Traditional builtin types}.
@node Arrays
@section Array types
It is well established, and widely used, that the type of the index,
unlike most types found in the stabs, is merely a type definition, not
-type information (@pxref{String Field}) (that is, it need not start with
+type information (@pxref{String field}) (that is, it need not start with
@samp{@var{type-number}=} if it is defining a new type). According to a
comment in GDB, this is also true of the type of the array elements; it
gives @samp{ar1;1;10;ar1;1;10;4} as a legitimate way to express a two
example, an array of 3-byte objects might, if unpacked, have each
element aligned on a 4-byte boundary, but if packed, have no padding.
One way to specify that something is packed is with type attributes
-(@pxref{String Field}). In the case of arrays, another is to use the
+(@pxref{String field}). In the case of arrays, another is to use the
@samp{P} type descriptor instead of @samp{a}. Other than specifying a
packed array, @samp{P} is identical to @samp{a}.
is determined by the architecture (normally all enumerations types are
32 bits). There should be a way to specify an enumeration type of
another size; type attributes would be one way to do this. @xref{Stabs
-Format}.
+format}.
@node Structures
@section Structures
contains a type definition for an element which is a pointer to type 16.
@node Typedefs
-@section Giving a Type a Name
+@section Giving a type a name
To give a type a name, use the @samp{t} symbol descriptor. The type
-is specified by the type information (@pxref{String Field}) for the stab.
+is specified by the type information (@pxref{String field}) for the stab.
For example,
@example
AIX provides a type descriptor to specify it. The type descriptor is
@samp{o} and is followed by a name. I don't know what the name
means---is it always the same as the name of the type, or is this type
-descriptor used with a nameless stab (@pxref{String Field})? There
+descriptor used with a nameless stab (@pxref{String field})? There
optionally follows a comma followed by type information which defines
the type of this type. If omitted, a semicolon is used in place of the
comma and the type information, and the type is much like a generic
.stabs "an_u:23",128,0,0,-20
@end example
-@node Function Types
+@node Function types
@section Function types
Various types can be defined for function variables. These types are
The variable defines a new type, 24, which is a pointer to another new
type, 25, which is a function returning @code{int}.
-@node Symbol Tables
+@node Symbol tables
@chapter Symbol information in symbol tables
This chapter describes the format of symbol table entries
@chapter GNU C++ stabs
@menu
-* Basic Cplusplus types::
+* Basic cplusplus types::
* Simple classes::
* Class instance::
* Methods:: Method definition
* Protections::
-* Method Modifiers::
-* Virtual Methods::
+* Method modifiers::
+* Virtual methods::
* Inheritence::
-* Virtual Base Classes::
-* Static Members::
+* Virtual base classes::
+* Static members::
@end menu
Type descriptors added for C++ descriptions:
gibberish. Can anyone say what really goes here?).
Note that there is a conflict between this and type attributes
-(@pxref{String Field}); both use type descriptor @samp{@@}.
+(@pxref{String field}); both use type descriptor @samp{@@}.
Fortunately, the @samp{@@} type descriptor used in this C++ sense always
will be followed by a digit, @samp{(}, or @samp{-}, and type attributes
never start with those things.
@end table
-@node Basic Cplusplus types
+@node Basic cplusplus types
@section Basic types for C++
<< the examples that follow are based on a01.C >>
pubMeth::24=##12;:f;2A.;;",128,0,0,0
@end smallexample
-@node Method Modifiers
-@section Method Modifiers (const, volatile, const volatile)
+@node Method modifiers
+@section Method modifiers (@code{const}, @code{volatile}, @code{const volatile})
<< based on a6.C >>
ConstVolMeth::23=##12;:f;2D.;;",128,0,0,0
@end example
-@node Virtual Methods
-@section Virtual Methods
+@node Virtual methods
+@section Virtual methods
<< The following examples are based on a4.C >>
28;;D_virt::32:i;2A*-2147483646;31;;;~%20;",128,0,0,0
@end smallexample
-@node Virtual Base Classes
-@section Virtual Base Classes
+@node Virtual base classes
+@section Virtual base classes
A derived class object consists of a concatination in memory of the data
areas defined by each base class, starting with the leftmost and ending
virtual base pointer for @code{B} at 128, and @code{Ddat} at 160.
-@node Static Members
-@section Static Members
+@node Static members
+@section Static members
The data area for a class is a concatenation of the space used by the
data members of the class. If the class has virtual methods, a vtable
<< How is this reflected in stabs? See Cygnus bug #677 for some info. >>
-@node Stab Types
+@node Stab types
@appendix Table of stab types
The following are all the possible values for the stab @var{type} field, for
@table @code
@item 0x20 N_GSYM
-Global symbol; see @ref{Global Variables}.
+Global symbol; see @ref{Global variables}.
@item 0x22 N_FNAME
Function name (for BSD Fortran); see @ref{N_FNAME}.
BSS segment file-scope variable; see @ref{Statics}.
@item 0x2a N_MAIN
-Name of main routine; see @ref{Main Program}.
+Name of main routine; see @ref{Main program}.
@c FIXME: discuss this in the Statics node where we talk about
@c the fact that the n_type indicates the section.
Modula-2 compilation unit; see @ref{N_M2C}.
@item 0x44 N_SLINE
-Line number in text segment; see @ref{Line Numbers}.
+Line number in text segment; see @ref{Line numbers}.
@item 0x46 N_DSLINE
-Line number in data segment; see @ref{Line Numbers}.
+Line number in data segment; see @ref{Line numbers}.
@item 0x48 N_BSLINE
-Line number in bss segment; see @ref{Line Numbers}.
+Line number in bss segment; see @ref{Line numbers}.
@item 0x48 N_BROWS
Sun source code browser, path to @file{.cb} file; see @ref{N_BROWS}.
Last stab for module (Solaris2).
@item 0x64 N_SO
-Path and name of source file; see @ref{Source Files}.
+Path and name of source file; see @ref{Source files}.
@item 0x80 N_LSYM
-Stack variable (@pxref{Stack Variables}) or type (@pxref{Typedefs}).
+Stack variable (@pxref{Stack variables}) or type (@pxref{Typedefs}).
@item 0x82 N_BINCL
-Beginning of an include file (Sun only); see @ref{Include Files}.
+Beginning of an include file (Sun only); see @ref{Include files}.
@item 0x84 N_SOL
-Name of include file; see @ref{Include Files}.
+Name of include file; see @ref{Include files}.
@item 0xa0 N_PSYM
Parameter variable; see @ref{Parameters}.
@item 0xa2 N_EINCL
-End of an include file; see @ref{Include Files}.
+End of an include file; see @ref{Include files}.
@item 0xa4 N_ENTRY
Alternate entry point; see @ref{N_ENTRY}.
@item 0xc0 N_LBRAC
-Beginning of a lexical block; see @ref{Block Structure}.
+Beginning of a lexical block; see @ref{Block structure}.
@item 0xc2 N_EXCL
-Place holder for a deleted include file; see @ref{Include Files}.
+Place holder for a deleted include file; see @ref{Include files}.
@item 0xc4 N_SCOPE
Modula2 scope information (Sun linker); see @ref{N_SCOPE}.
@item 0xe0 N_RBRAC
-End of a lexical block; see @ref{Block Structure}.
+End of a lexical block; see @ref{Block structure}.
@item 0xe2 N_BCOMM
-Begin named common block; see @ref{Common Blocks}.
+Begin named common block; see @ref{Common blocks}.
@item 0xe4 N_ECOMM
-End named common block; see @ref{Common Blocks}.
+End named common block; see @ref{Common blocks}.
@item 0xe8 N_ECOML
-Member of a common block; see @ref{Common Blocks}.
+Member of a common block; see @ref{Common blocks}.
@c FIXME: How does this really work? Move it to main body of document.
@item 0xea N_WITH
@tableindent=.8in
@end iftex
-@node Symbol Descriptors
-@appendix Table of Symbol Descriptors
+@node Symbol descriptors
+@appendix Table of symbol descriptors
These tell in the @code{.stabs} @var{string} field what kind of symbol
the stab represents. They follow the colon which follows the symbol
-name. @xref{String Field}, for more information about their use.
+name. @xref{String field}, for more information about their use.
@c Please keep this alphabetical
@table @code
@item @var{digit}
@itemx (
@itemx -
-Variable on the stack; see @ref{Stack Variables}.
+Variable on the stack; see @ref{Stack variables}.
@item a
-Parameter passed by reference in register; see @ref{Reference Parameters}.
+Parameter passed by reference in register; see @ref{Reference parameters}.
@item c
Constant; see @ref{Constants}.
@item C
Conformant array bound (Pascal, maybe other languages); @ref{Reference
-Parameters}. Name of a caught exception (GNU C++). These can be
+parameters}. Name of a caught exception (GNU C++). These can be
distinguished because the latter uses @code{N_CATCH} and the former uses
another symbol type.
Floating point register variable; see @ref{Register variables}.
@item D
-Parameter in floating point register; see @ref{Register Parameters}.
+Parameter in floating point register; see @ref{Register parameters}.
@item f
File scope function; see @ref{Procedures}.
Global function; see @ref{Procedures}.
@item G
-Global variable; see @ref{Global Variables}.
+Global variable; see @ref{Global variables}.
@item i
-@xref{Register Parameters}.
+@xref{Register parameters}.
@item I
-Internal (nested) procedure; see @ref{Nested Procedures}.
+Internal (nested) procedure; see @ref{Nested procedures}.
@item J
-Internal (nested) function; see @ref{Nested Procedures}.
+Internal (nested) function; see @ref{Nested procedures}.
@item L
Label name (documented by AIX, no further information known).
Static Procedure; see @ref{Procedures}.
@item R
-Register parameter; see @ref{Register Parameters}.
+Register parameter; see @ref{Register parameters}.
@item r
Register variable; see @ref{Register variables}.
Enumeration, structure, or union tag; see @ref{Typedefs}.
@item v
-Parameter passed by reference; see @ref{Reference Parameters}.
+Parameter passed by reference; see @ref{Reference parameters}.
@item V
Procedure scope static variable; see @ref{Statics}.
@item x
-Conformant array; see @ref{Conformant Arrays}.
+Conformant array; see @ref{Conformant arrays}.
@item X
Function return variable; see @ref{Parameters}.
@end table
-@node Type Descriptors
-@appendix Table of Type Descriptors
+@node Type descriptors
+@appendix Table of type descriptors
These tell in the @code{.stabs} @var{string} field what kind of type is being
defined. They follow the type number and an equals sign.
-@xref{String Field}, for more information about their use.
+@xref{String field}, for more information about their use.
@table @code
@item @var{digit}
@itemx (
-Type reference; see @ref{String Field}.
+Type reference; see @ref{String field}.
@item -
-Reference to builtin type; see @ref{Negative Type Numbers}.
+Reference to builtin type; see @ref{Negative type numbers}.
@item #
Method (C++); see @ref{Cplusplus}.
@item *
-Pointer; see @ref{Miscellaneous Types}.
+Pointer; see @ref{Miscellaneous types}.
@item &
Reference (C++).
@item @@
-Type Attributes (AIX); see @ref{String Field}. Member (class and variable)
+Type Attributes (AIX); see @ref{String field}. Member (class and variable)
type (GNU C++); see @ref{Cplusplus}.
@item a
Open array; see @ref{Arrays}.
@item b
-Pascal space type (AIX); see @ref{Miscellaneous Types}. Builtin integer
-type (Sun); see @ref{Builtin Type Descriptors}.
+Pascal space type (AIX); see @ref{Miscellaneous types}. Builtin integer
+type (Sun); see @ref{Builtin type descriptors}.
@item B
-Volatile-qualified type; see @ref{Miscellaneous Types}.
+Volatile-qualified type; see @ref{Miscellaneous types}.
@item c
-Complex builtin type; see @ref{Builtin Type Descriptors}.
+Complex builtin type; see @ref{Builtin type descriptors}.
@item C
COBOL Picture type. See AIX documentation for details.
@item d
-File type; see @ref{Miscellaneous Types}.
+File type; see @ref{Miscellaneous types}.
@item D
N-dimensional dynamic array; see @ref{Arrays}.
N-dimensional subarray; see @ref{Arrays}.
@item f
-Function type; see @ref{Function Types}.
+Function type; see @ref{Function types}.
@item F
-Pascal function parameter; see @ref{Function Types}
+Pascal function parameter; see @ref{Function types}
@item g
-Builtin floating point type; see @ref{Builtin Type Descriptors}.
+Builtin floating point type; see @ref{Builtin type descriptors}.
@item G
COBOL Group. See AIX documentation for details.
Imported type; see @ref{Cross-references}.
@item k
-Const-qualified type; see @ref{Miscellaneous Types}.
+Const-qualified type; see @ref{Miscellaneous types}.
@item K
COBOL File Descriptor. See AIX documentation for details.
@item M
-Multiple instance type; see @ref{Miscellaneous Types}.
+Multiple instance type; see @ref{Miscellaneous types}.
@item n
String type; see @ref{Strings}.
Opaque type; see @ref{Typedefs}.
@item p
-Procedure; see @ref{Function Types}.
+Procedure; see @ref{Function types}.
@item P
Packed array; see @ref{Arrays}.
Range type; see @ref{Subranges}.
@item R
-Builtin floating type; see @ref{Builtin Type Descriptors} (Sun). Pascal
-subroutine parameter; see @ref{Function Types} (AIX). Detecting this
+Builtin floating type; see @ref{Builtin type descriptors} (Sun). Pascal
+subroutine parameter; see @ref{Function types} (AIX). Detecting this
conflict is possible with careful parsing (hint: a Pascal subroutine
parameter type will always contain a comma, and a builtin type
descriptor never will).
Structure type; see @ref{Structures}.
@item S
-Set type; see @ref{Miscellaneous Types}.
+Set type; see @ref{Miscellaneous types}.
@item u
Union; see @ref{Unions}.
union within a struct in C. See AIX documentation for details.
@item w
-Wide character; see @ref{Builtin Type Descriptors}.
+Wide character; see @ref{Builtin type descriptors}.
@item x
Cross-reference; see @ref{Cross-references}.
@c FIXME: This appendix should go away; see N_PSYM or N_SO for an example.
For a full list of stab types, and cross-references to where they are
-described, see @ref{Stab Types}. This appendix just duplicates certain
+described, see @ref{Stab types}. This appendix just duplicates certain
information from the main body of this document; eventually the
information will all be in one place.
@c dbx?
@end itemize
-@node XCOFF-differences
+@node XCOFF differences
@appendix Differences between GNU stabs in a.out and GNU stabs in XCOFF
@c FIXME: Merge *all* these into the main body of the document.
N_LENG unknown
@end example
-@node Sun-differences
+@node Sun differences
@appendix Differences between GNU stabs and Sun native stabs
@c FIXME: Merge all this stuff into the main body of the document.
use the type number alone, with no source file number.
@end itemize
-@node Stabs-in-ELF
+@node Stabs in ELF
@appendix Using stabs with the ELF object file format
The ELF object file format allows tools to create object files with