<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><br>
</p>
<br>
<div class="moz-cite-prefix">On 2018-03-06 7:13 AM, Pavel Labath
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAJt8pk-O2YRgoNVBPfdENUGcNRfNK+HMvz7VwHjVX0=A3tL7Lg@mail.gmail.com">
<div dir="ltr"><br>
<br>
<br>
<div class="gmail_quote">
<div dir="ltr">On Sun, 4 Mar 2018 at 20:33, John McCall via
llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org"
moz-do-not-send="true">llvm-dev@lists.llvm.org</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">
<div style="word-wrap:break-word">
<div>
<div><br>
</div>
Seems like a reasonable project! Maybe we can get a SoC
student to make a standalone C++ demangler library with
a tree API (an unstable one should be fine), and
debuggers can just use that instead of relying on the
OS's cxa_demangle. (I'm really not sure why development
tools rely on the system demangler anyway; surely it's
always easier to tell users that they'd get a better
experience with a new debugger than to tell them that
they need to replace their system's C++ standard
library?)</div>
<div> </div>
</div>
</blockquote>
<div><br>
</div>
<div>I believe there is some work being done on that already
<<a
href="http://lists.llvm.org/pipermail/lldb-dev/2018-January/013186.html"
moz-do-not-send="true">http://lists.llvm.org/pipermail/lldb-dev/2018-January/013186.html</a>>,
but I'm not sure what's the current state of it. Also, in
the default configuration, LLDB will use
lllvm::itaniumDemangle for demangling (although there is a
build option to use cxa_demangle). <br>
</div>
</div>
</div>
</blockquote>
Coincidentally, I was just finishing up the refactoring work I
wanted to do first on the demangler in libcxxabi. I'm going to put
together an API for the AST and put a patch up on phab as a starting
point, hopefully we can figure out the details of what LLDB wants
access to from there. I'll ping the thread you linked to when I put
that patch up.<br>
<br>
Erik<br>
</body>
</html>