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

Rainer Schuetze r.sagitario at gmx.de
Fri Jan 3 03:24:56 PST 2014



On 02.01.2014 12:35, Iain Buclaw wrote:
>
> 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$
>
>
> The alternative is to just go for prefixing with double underscore,
> given that the names are OK?
>
> __init -> __init
> __Class -> __classinfo
> __vtbl -> __vtable
> __interface -> __interfaceinfo
> __ModuleInfo -> __moduleinfo
>

I think double underscores should be hint enough to suggest "compiler 
generated stuff". Prepending $ might confuse expression evaluators (e.g. 
mago).

I always wondered why these symbols don't follow the standard mangling 
to start with...


More information about the Digitalmars-d mailing list