* stabs.texinfo (Arrays): Talk about type definition vs. type

information.
This commit is contained in:
Jim Kingdon 1993-05-26 17:20:50 +00:00
parent 59d69506fb
commit ee59134ee7
2 changed files with 13 additions and 0 deletions

View File

@ -1,5 +1,8 @@
Wed May 26 00:26:42 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
* stabs.texinfo (Arrays): Talk about type definition vs. type
information.
* stabs.texinfo (Builtin Type Descriptors): Talk about omitting
the trailing semicolon.

View File

@ -1610,6 +1610,16 @@ type is a range type, the extra semicolon can be omitted. GDB (at least
through version 4.9) doesn't support any kind of index type other than a
range anyway; I'm not sure about dbx.
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
(@pxref{Type Definitions}), not type information (@pxref{Stabs Format})
(that is, it need not start with @var{type-number}@code{=} 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 dimensional array. According to
AIX documentation, the element type must be type information. GDB
accepts either.
The type of the index is often a range type, expressed as the letter r
and some parameters. It defines the size of the array. In the example
below, the range @code{r1;0;2;} defines an index type which is a