[fpc-devel] Dwarf3 and the encoding of classes

Paul Ishenin webpirat at mail.ru
Mon Jan 3 13:12:26 CET 2011

03.01.2011 18:30, Joost van der Sluis wrote:
> There are a few issues, though:
>   - If a class is not assigned (=nil), gdb shows the message that the
> class is not assigned. It doesn't show that it is nil. (Effectively this
> means the same offcourse, is this a problem? Should gdb be patched to
> show nil?)
Yes. Nil is a value which is assigned to a class instance and therefore 
should be shown.
> - You can not compare two classes in gdb. It will complain that there is
> no operator to compare two classes. Which is right, offcourse. But in
> Pascal normally the addresses of the classes are compared when you
> compare two classes. Gdb can't handle that.
Maybe to declare an operator? Looks like gdb understands FPC class as 
C++ class which is not a pointer?
> I also promised to build a Windows-gdb binary with the latest Dwarf-3
> patches from the Archer-project. This can be downloaded here:
> http://www.lazarussupport.com/downloads/gdb_win32_fedora15_with_pascal_patches.zip
> You can use this gdb version to test the Dwarf-3 format (strings, open
> arrays), and the borland-fastcall calling convention. (ie: you can call
> functions/procedures from within the debugger)
A big step forward!

Best regards,
Paul Ishenin

More information about the fpc-devel mailing list