This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Stab string field for array types


[Note: Cc: gcc at gnu dot 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]