[fpc-devel] dwarf for "array [ 0..191] of "
Martin
lazarus at mfriebe.de
Sun Jan 20 15:52:52 CET 2013
On 19/01/2013 14:25, Sven Barth wrote:
> On 19.01.2013 15:17, Martin wrote:
>> I got the following source:
>> type TFoo = array [0..191] of integer;
>>
>> and in gdb
>> ptype TFoo
>>
>> Using dwarf, up to gdb 7.2 (inclusive) the result is ok.
>>
>> but 7.3 up reports
>> array [0..-65] of LONGINT
> I don't know the dwarf format good enough, but the generation of debug
> information is (mostly?) located in the compiler/dbg*.pas files.
> Namely for dwarf you should look at dbgdwarf.pas and there at the
> class TDebugInfoDwarf of which probably the method appenddef_array is
> of interest for you.
Well unfortunately neither do I know the dwarf format internals. So even
if I found which node it writes, I would not necessarily know it's meaning.
Well I could look at the naming/comments in fpc, but since they are
part of what I want to be verified, it would be no use to rely on them...
More information about the fpc-devel
mailing list