Re: [fpc-devel] Debuginfo for dynamic arrays
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 properly describe the dynamic length location too, so GDB will automatically do the right thing (to be enabled/disabled via a -gXXX command line option, so the old method can still be selected for use with older GDB versions). Jonas ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
Re: [fpc-devel] Debuginfo for dynamic arrays
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 http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
Re: [fpc-devel] Debuginfo for dynamic arrays
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. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
Re: [fpc-devel] Debuginfo for dynamic arrays
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 will return an array as ptype. > Works, thank you very much! Martin ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel