Am 24.01.2016 um 15:20 schrieb Martin: > 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. >
Dwarf-3 can handle dyn. arrays much better. What do you think about switching the default dwarf level from 2 to 3? _______________________________________________ fpc-devel maillist - [email protected] http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
