<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 19 Jan 2013, at 15:17, Martin wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">Since I don't know the fpc cdoebase, I can not check this myself.<br><br>I suspect it is a gdb issue. But if it is not to much work, maybe someone who does know fpc dwarf generation can check that it is not fpc?<br><br>I got the following source:<br> type TFoo = array [0..191] of integer;<br><br>and in gdb<br> ptype TFoo<br><br>Using dwarf, up to gdb 7.2 (inclusive) the result is ok.<br><br>but 7.3 up reports<br> array [0..-65] of LONGINT<br><br>SO definitely something changed in GDB.<br>But I do not know if the old or new gdb is right.<br></span></blockquote></div><br><div>It looks like a gdb issue (from dwarfdump; readelf -g can show similar information):</div><div><br></div><div><div>0x00000076: TAG_array_type [4] *</div><div> AT_name( "TFOO" )</div><div> AT_byte_size( 0x00000180 )</div><div> AT_type( {0x00000091} ( SMALLINT ) )</div><div><br></div><div>0x00000082: TAG_subrange_type [5] </div><div> AT_lower_bound( 0x0000000000000000 )</div><div> AT_upper_bound( 0x00000000000000bf )</div><div> AT_byte_stride( 0x00000002 )</div><div> AT_type( {0x000000b0} ( BYTE ) )</div><div><br></div><div>0x0000008b: NULL</div></div><div><br></div><div>...</div><div><div> AT_name( "BYTE" )</div><div> AT_type( {0x000000ba} ( BYTE ) )</div><div><br></div><div>0x000000ba: TAG_base_type [7] </div><div> AT_name( "BYTE" )</div><div> AT_encoding( DW_ATE_unsigned )</div><div> AT_byte_size( 0x01 )</div></div><div><br></div><div>I.e., FPC declares the range of the array as BYTE, and BYTE is declared as an unsigned base type of 1 byte large.</div><div><br></div><div><br></div><div>Jonas</div></body></html>