Accessing vtable, initialiser, etc symbols from debug (gdb)

Jerry jlquinn at optonline.net
Thu Jan 2 14:47:39 PST 2014


Iain Buclaw <ibuclaw at gdcproject.org> writes:

> On 30 December 2013 12:57, Jacob Carlborg <doob at me.com> wrote:
>> On 2013-12-30 13:24, Iain Buclaw wrote:
>>
>>> However I'm not sure if the names are sufficient, and whether or not
>>> they should really be prefixed with a double underscore to ensure that
>>> they don't conflict with user-declared members (especially the
>>> compiler-generated symbols).
>>
>>
> Special symbols can be suffixed with a $ perhaps.  I can't think of
> any other symbol that would work.
>
> __init -> init$
> __Class -> classinfo$
> __vtbl -> vtable$
> __interface -> interfaceinfo$
> __ModuleInfo -> moduleinfo$

I like this approach.  Do we need the "info" in classinfo$,
interfaceinfo$, and moduleinfo$?

Jerry


More information about the Digitalmars-d mailing list