<div dir="ltr">Is there a way to provide a hook (eg, via an extern(C) function, or using a dynamically loaded shared library) to do this, so as to simply reuse D's <a href="https://dlang.org/phobos/std_demangle.html">https://dlang.org/phobos/std_demangle.html</a> and make sure it's always in sync with D's demangling instead of duplicating code</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 21, 2016 at 10:24 AM, Greg Clayton via lldb-dev <span dir="ltr"><<a href="mailto:lldb-dev@lists.llvm.org" target="_blank">lldb-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">It might be nice to add demangling support to llvm and then use it by modifying "Mangled::GetDemangledName()" in Mangled.cpp. This is where all demangling happens. Hopefully you have a great prefix that won't conflict with other languages "_Z" for C++, "_T" for swift. But the code in Mangled::GetDemangledName() will look at the prefix and attempt to demangle the name based on what prefix it starts with.<br>
<span class=""><br>
<br>
> On Sep 21, 2016, at 5:52 AM, Johan Engelen via lldb-dev <<a href="mailto:lldb-dev@lists.llvm.org">lldb-dev@lists.llvm.org</a>> wrote:<br>
><br>
</span><div><div class="h5">> Hi all,<br>
> I recently looked into adding demangling support for D in LLDB, but got lost in the code.<br>
> (right now, basic D support is there with: <a href="https://reviews.llvm.org/D24794" rel="noreferrer" target="_blank">https://reviews.llvm.org/<wbr>D24794</a>)<br>
><br>
> I'd like some pointers to where demangling is done for the other languages, and to where I should add D support for it.<br>
><br>
> Thanks a lot,<br>
> Johan<br>
><br>
</div></div>> ______________________________<wbr>_________________<br>
> lldb-dev mailing list<br>
> <a href="mailto:lldb-dev@lists.llvm.org">lldb-dev@lists.llvm.org</a><br>
> <a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/lldb-dev</a><br>
<br>
______________________________<wbr>_________________<br>
lldb-dev mailing list<br>
<a href="mailto:lldb-dev@lists.llvm.org">lldb-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/lldb-dev</a><br>
</blockquote></div><br></div>