Re: [fpc-devel] Inconsistent use of Timeout in SimpleIPC

2016-01-24 Thread Denis Kozlov
On 22/01/2016 22:33, Denis Kozlov wrote: so the next patch will be use this common "simpleipc.inc" on all Windows platforms (AllWindowsOSes). Patch attached here: http://bugs.freepascal.org/view.php?id=29496 Summary of changes: 1) Moved "src/win/simpleipc.inc" to "src/winall/simpleipc.inc" 2)

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

[fpc-devel] Debuginfo for dynamic arrays

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

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

Re: [fpc-devel] Dwarf-3

2016-01-24 Thread Martin
On 24/01/2016 16:03, Florian Klämpfl wrote: Dwarf-3 can handle dyn. arrays much better. What do you think about switching the default dwarf level from 2 to 3? The last gdb I tested on win (32bit vista) was gdb 10.0 (current is 10.1) And (IIRC) it still crashes (gdb exe has stopped

Re: [fpc-devel] Dwarf-3 (was: Debuginfo for dynamic arrays)

2016-01-24 Thread Florian Klämpfl
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

Re: [fpc-devel] Dwarf-3

2016-01-24 Thread Martin Schreiber
On Sunday 24 January 2016 17:17:57 Martin wrote: > On 24/01/2016 16:03, Florian Klämpfl wrote: > > Dwarf-3 can handle dyn. arrays much better. What do you think about > > switching the default dwarf level from 2 to 3? > > The last gdb I tested on win (32bit vista) was gdb 10.0 (current is 10.1) >