This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Stab string field for array types
- From: Ludovic Courtès <ludovic dot courtes at laas dot fr>
- To: binutils at sources dot redhat dot com
- Cc: gcc at gnu dot org
- Date: Fri, 28 Mar 2003 11:36:50 +0100
- Subject: Stab string field for array types
- Organization: LAAS-CNRS - http://www.laas.fr/
[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.