On 12/09/2011 19:14, Martin wrote:
On 12/09/2011 19:08, Martin wrote:
On 12/09/2011 18:32, Jonas Maebe wrote:
While not a complete solution either, couldn't you use the
information from the Lazarus codetools to figure out which
properties exist? If that's currently not possible because you don't
know which unit the type is declared in: DWARF supports adding
information about where an entity is declared to the debug
information. While FPC currently does not do that, this is something
that could be added if it would help you.
A less drastic idea:
Currently properties that map to a field are already present in dwarf
(again why not in stabs?).
Could not properties mapping to a function be implemented the same way
=> normal functions are already listed in "ptype" so
public
property Counter: Integer read GetCounter
could appear the same as the function "GetCounter" ?
In that case at least the list of available symbols is complete. The
only thing that then would need codetools involved was to check if the
name is a property and not a function/field.
Maybe they can even in both cases (field or function) be encoded as
"internal pointer" (the same that is used vor "var param" or objects, if
I underatnad them correctly?
They do auto deref if used , but in ptype some gdb show them , so they
can be detected (and where gdb does not show them special, they will be
detectable if debug info is read by the IDE, bypassing gdb (planned for
future))
_______________________________________________
fpc-devel maillist - [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-devel