November 01, 2012 Re: About demangling | ||||
---|---|---|---|---|
| ||||
Posted in reply to H. S. Teoh | On Thu, 01 Nov 2012 17:21:29 -0000, H. S. Teoh <hsteoh@quickfur.ath.cx> wrote: > On Thu, Nov 01, 2012 at 04:25:56PM -0000, Regan Heath wrote: >> On Thu, 01 Nov 2012 15:40:23 -0000, H. S. Teoh >> <hsteoh@quickfur.ath.cx> wrote: >> >> >On Thu, Nov 01, 2012 at 03:16:25PM +0100, Dan wrote: >> >>On Thursday, 11 October 2012 at 21:04:28 UTC, Alex Rønne Petersen >> >>wrote: >> >>>On 11-10-2012 22:56, Sean Kelly wrote: > [...] >> >>>We even have a tool for that: >> >>>https://github.com/D-Programming-Language/tools/blob/master/ddemangle.d > [...] >> Also, running this: >> >> dmd test.d | demangle.exe - >> >> on windows, results in this: >> >> invalid UTF-8 sequence > [...] >> Omitting the - works, and demangle reads stdin. > [...] > > https://github.com/D-Programming-Language/tools/pull/35 Perfect, thanks. R -- Using Opera's revolutionary email client: http://www.opera.com/mail/ |
November 01, 2012 Re: About demangling | ||||
---|---|---|---|---|
| ||||
On Thu, Nov 01, 2012 at 08:40:23AM -0700, H. S. Teoh wrote: > On Thu, Nov 01, 2012 at 03:16:25PM +0100, Dan wrote: > > On Thursday, 11 October 2012 at 21:04:28 UTC, Alex Rønne Petersen wrote: [...] > > >We even have a tool for that: https://github.com/D-Programming-Language/tools/blob/master/ddemangle.d > > > > Does this work and if so how? I've seen a thread about the demangling tool not working on types, just functions. The comment at top of this file says "Replaces *all* occurrences of mangled D symbols in the input..." so I assume it deals with types? The help says: 'If <inputfile> is a single dash '-', standard input is read.' > [...] > > This program only calls the library core.demangle. So if core.demangle doesn't demangle something, then it won't get demangled. The problem is, there's a comment in core.demangle that seems to say that some mangled symbols are skipped because they are not pertinent to the ABI, or something to that effect. Meaning that *not* all symbols are getting demangled. > > I think this should be an enhancement request in the bugtracker. [...] I just looked over core.demangle. Apparently only function names are demangled, everything else is currently not implemented. :-( I say, definitely file an enhancement request in the bugtracker. T -- The computer is only a tool. Unfortunately, so is the user. -- Armaphine, K5 |
Copyright © 1999-2021 by the D Language Foundation