[fpc-devel] Dwarf3 and the encoding of classes
DrDiettrich1 at aol.com
Sun Jan 9 20:08:51 CET 2011
Joost van der Sluis schrieb:
> I've done some more tests with -gw2. 'p classinstance' gives you the
> address of the class-instance and not the values within the class.
> That's a big issue to me. To show the class, you have to use 'p
> classinstance^', which is nonsense in a Pascal-way of view.
That's not nonsense, because there must exist ways to access both the
address and contained data. If you'd have to write "p @classinstance"
instead, that wouldn't simplify anything, it only would burden the
Lazarus debugger with another translation into the debugger application
syntax - differently for every concrete debugger. A general debugger has
no special notion of the Pascal view...
> (Delphi does allow
> class-comparisons in the debugger, but you can't add or substract
> anything form a classinstance. With gdb (gw2) you can)
Delphi has its own debugger, while Lazarus has to use whatever is
installed on a specific machine.
> Overall, I think that omitting the implicit-pointer as Dwarf-3 does now,
> is the right way to go, so I'll continue with that.
As long as you don't break debugging on other users' machines...
More information about the fpc-devel