[Lazarus] GDB - cannot perform pointer math on incomplete types

Martin lazarus at mfriebe.de
Tue Dec 4 03:06:38 CET 2012


On 04/12/2012 02:04, Martin wrote:
> On 04/12/2012 01:54, David Emerson wrote:
>> This error message has often befuddled me when debugging.
>> I've got a dynamic array, usually a type that I've created, e.g.
>> type longint_arr = array of longint
>> I'm using the Watch List and want to inspect one of the elements of 
>> such an
>> array, e.g. f_list[0]. But I get this error, which I guess comes from 
>> GDB.
>> Is there any way I can coerce it into giving me f_list[0], or even
>> f_list[1]?
>>
>
> I would need a complete example....
> Also Laz/fpc version...

Or supply a log: 
http://wiki.lazarus.freepascal.org/GDB_Debugger_Tips#Log_info_for_debug_session




More information about the Lazarus mailing list