Stab string field for array types

Ludovic Courtès ludovic.courtes@laas.fr
Fri Mar 28 19:24:00 GMT 2003


[Note: Cc: gcc@gnu.org since it might also be relevant there]

Hi,

Looking at "The Stabs Debug Format" manual, I noticed a difference
between the description of what array types stabs should look like and
what actually happen when compiling with GCC (2.95.4).  While the manual
states that the string field for array types should be something like
"ar<type-number>;<lower-bound>;<upper-bound>;", gcc produces the
following stab for "typedef int array[2];" :

  .stabs "array:t(0,20)=(0,21)=ar(0,1);0;1;(0,1)",128,0,1,0

In other words, there seem to be another type number added after the
last semicolon.

What does this type number represent and is it a more-or-less standard
thing?

Thanks,
Ludovic.



More information about the Binutils mailing list