On 03/01/2011 12:29, Joost van der Sluis wrote:
This has nothing to do with gdb, but with the debug-information that fpc
(-gw3) generates. Now it handles classes as if they are not pointers. I
think that this is closer to how a class is defined in Pascal. A class
is (imho) not a pointer, just like an ansistring is not a pointer. After
all, we don't use AnObject^.Destroy....
So we have to choose what to do: make the implicit pointer visible in
the debug-info and add some hacks to gdb that it converts
AnObject.Destroy to AnObject^.Destroy. (This is what we do with stabs
and Dwarf< 3)
How was it done in stabs? IIRC with stabs objects behaved? (but I will
have to retest this)
I don't remember what stabs did to nil, or compare....
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel