[fpc-devel] Debuginfo for dynamic arrays

Martin fpc at mfriebe.de
Sun Jan 24 15:20:04 CET 2016

On 24/01/2016 14:06, Martin Schreiber wrote:
> Hi,
> For a "array of integer" type variable FPC 32bit stabs returns for gdb "ptype"
> command
> "
> type = ^(array [0..-1] of LONGINT)
> ".
> MSEide uses this info to fetch the itemcount and item memory and to show the
> array  items in watches window.
> FPC 64bit dwarf "ptype" returns
> "
> type = ^LONGINT
> ".
> How can we identify a dynamic array with FPC dwarf?

If I remember correctly then you can do (after you got above result)
    ptype foo^
or if foo is an expression ptype (foo)^
and this will return an array as ptype.

More information about the fpc-devel mailing list