Re: [fpc-devel] Debuginfo for dynamic arrays

2016-01-24 Thread Jonas Maebe
Martin Schreiber wrote: How can we identify a dynamic array with FPC dwarf? You can't, and ideally this shouldn't even be necessary. In the past years, people have implemented support in GDB for Fortran and ADA arrays that also have dynamic length counts. We should update our DWARF code to

Re: [fpc-devel] Debuginfo for dynamic arrays

2016-01-24 Thread Florian Klämpfl
Am 24.01.2016 um 15:24 schrieb Jonas Maebe: > Martin Schreiber wrote: >> How can we identify a dynamic array with FPC dwarf? > > You can't, (gdb) whatis d type = array of Double ? ___ fpc-devel maillist - fpc-devel@lists.freepascal.org

Re: [fpc-devel] Debuginfo for dynamic arrays

2016-01-24 Thread 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

Re: [fpc-devel] Debuginfo for dynamic arrays

2016-01-24 Thread Martin Schreiber
On Sunday 24 January 2016 15:20:04 Martin wrote: > On 24/01/2016 14:06, Martin Schreiber wrote: > > 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