Is std.demangle usable?
Brad Roberts
braddr at puremagic.com
Wed Dec 22 20:54:29 PST 2010
Please file a bug against druntime with any symbols that it can't handle.
If you know the symbol name it should decode to, that'd help.
On Thu, 23 Dec 2010, Andrej Mitrovic wrote:
> On 12/23/10, Sean Kelly <sean at invisibleduck.org> wrote:
> > Okay, I'm about to check in this change. With it, demangle works on the
> > string you supplied provided it's prefixed with "_D8" or "D8". Simply
> > having "demangle4mainFAAyaZv4testMFZv" isn't a complete symbol.
> >
>
> Thanks. It works for _D3 as well. But not all of them. I can demangle this:
>
> _D3std5stdio4File17LockingTextWriter12__T3putTAyaZ3putMFAyaZv
> >> void std.stdio.File.LockingTextWriter.put!(immutable(char)[]).put(immuta
> ble(char)[])
>
> but not this:
> _D3std9algorithm28__T6reduceVAyaa5_61202b2062Z255__T6reduceTS3std9algorithm221__T3MapS723std10fu1B89DCD92D22D288E31BD77EB8883277
>
> That one's from a trace log. I don't know why this name is mangled
> like that, though.
>
More information about the Digitalmars-d
mailing list