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

Martin lazarus at mfriebe.de
Tue Dec 4 04:53:23 CET 2012


On 04/12/2012 03:48, David Emerson wrote:
>> Still if you can get me the log + unit source ?
>>
>> because the IDE in many cases tries to work those out. So I wonder what
>> happens behind the curtains...
> I just constructed this program, which allows me to reproduce the issue. I
> put a breakpoint on the writeln.
> Watch List items:
> tsrl_ag_cp(cf.f_ag).f_curve.f_cps.f_list[0] -- gives GDB error
> ^tsrl_ag_cp(tsrl_ag_cp(cf.f_ag).f_curve.f_cps.f_list)[0] -- succeeds
>
> I'll see how much of this I can cut out and still reproduce :)
>

Thanks, this is ok.  I can reproduce.
I do not need it any simpler.

Btw with dwarf, both work, but the first returns the address only




More information about the Lazarus mailing list