Re: [PATCH] Handle DW_TAG_subrange_type

Andreas Schwab
2003-12-04T17:29:18Z

Elena Zannoni <ezannoni@redhat.com> writes:

> Can you post an example of the debug info you see for Ada in this
> case, just for the record?

These are a few examples extracted from 'readelf -w gnatbind':

<2><4b3>: Abbrev Number: 13 (DW_TAG_subrange_type)
DW_AT_type : <4ba>
DW_AT_upper_bound : 41
<1><4d11>: Abbrev Number: 8 (DW_TAG_subrange_type)
DW_AT_name : (indirect string, offset: 0x34ba): ada__exceptions__code_loc___XDLU_0__18446744073709551615
DW_AT_lower_bound : 0
DW_AT_type : <4d0a>
<2><4e53>: Abbrev Number: 13 (DW_TAG_subrange_type)
DW_AT_type : <4df2>
DW_AT_lower_bound : 1
DW_AT_upper_bound : 50
<2><54ca>: Abbrev Number: 22 (DW_TAG_variable)
DW_AT_artificial : 1
DW_AT_type : <5339>
DW_AT_location : 24 byte block: 92 29 0 92 25 0 31 1c 2d 28 6 0 92 29 0 2f 5 0 92 25 0 31 1c 96 (DW_OP_bregx: 41 0; DW_OP_bregx: 37 0; DW_OP_lit1; DW_OP_minus; DW_OP_lt; DW_OP_bra: 6; DW_OP_bregx: 41 0; DW_OP_skip: 5; DW_OP_bregx: 37 0; DW_OP_lit1; DW_OP_minus; DW_OP_nop)
<2><55b5>: Abbrev Number: 33 (DW_TAG_subrange_type)
DW_AT_type : <4df2>
DW_AT_upper_bound : <54ca>

Andreas.

--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, MaxfeldstraÃŸe 5, 90409 NÃ¼rnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."