On 08/09/2011 17:03, Seth Grover wrote:
If I compile this program with FPC 2.4.4 with debugging (-g), line numbers in backtraces (-gl), and dwarf debug information (-gw), then fire up GDB (I'm in Linux, by the way), put a breakpoint at the writeln, then run, observe what happens:(gdb) print MYREC2^ $3 = {C = 16, RECS = 0x7ffff7fee050} (gdb) print MYREC2^.RECS $4 = (^RECORD1ARRAY) 0x7ffff7fee050 (gdb) print MYREC2^.RECS^[I] $5 = {A = 0, B = 15} (gdb) print MYREC2^.RECS^[I].A Type RECORD1ARRAY is not a structure or union type.
I do not know whaere the erro comes from. just tried with gdb 7.3.2 on w32 fpc trunk - same error - but Record1(myrec2^.RECS^[0]).a does work So if all you need is a way to get the data.... _______________________________________________ fpc-devel maillist - [email protected] http://lists.freepascal.org/mailman/listinfo/fpc-devel
