[fpc-devel] Re: 0020225: issue examining pointer/array/record elements with GDB

Seth Grover sethdgrover at gmail.com
Fri Sep 16 16:25:18 CEST 2011


You're right, there was a case sensitivity issue, but even so I'm
having issues. Here's what I get compiling with -gw3 using the patches
from the Fedora SRC RPM Jonas linked to:

(gdb) print myRec2^
$1 = {c = 16, recs = <error reading variable>
(gdb) print myRec2^.recs
Cannot resolve DW_OP_push_object_address for a missing object

Here's what I get with vanilla GDB 7.3.1:

(gdb) print myRec2^.recs[i]
$10 = {a = -134291376, b = 32767}  (note that in this one the values
aren't even right)
(gdb) print myRec2^.recs[i].a
Type Record1Array is not a structure or union type.

I'll try a few more combinations, I've got a couple of hours before I
have to leave.

-SG

--
This email is fiction. Any resemblance to actual events
or persons living or dead is purely coincidental.

Seth Grover



More information about the fpc-devel mailing list