Re: [lldb-dev] Huge mangled names are causing long delays when loading symbol table symbols

2018-01-25 Thread Greg Clayton via lldb-dev
> On Jan 25, 2018, at 10:25 AM, Erik Pilkington > wrote: > > Hi, > I'm not at all familiar with LLDB, but I've been doing some work on the > demangler in libcxxabi. It's still a work in progress and I haven't yet > copied the changes over to ItaniumDemangle, which AFAIK is what lldb uses. >

Re: [lldb-dev] Huge mangled names are causing long delays when loading symbol table symbols

2018-01-25 Thread Jim Ingham via lldb-dev
That's along the same lines as what I was thinking. We really don't need to print all these names, and in fact the complicated ones are not useful for printing and certainly there are few times where you want to use them in their explicit forms. We really just want to pick out pieces to put in

Re: [lldb-dev] Huge mangled names are causing long delays when loading symbol table symbols

2018-01-25 Thread Jim Ingham via lldb-dev
specialized -> specified Jim > On Jan 25, 2018, at 10:30 AM, Jim Ingham via lldb-dev > wrote: > > specialized ___ lldb-dev mailing list lldb-dev@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev

Re: [lldb-dev] Huge mangled names are causing long delays when loading symbol table symbols

2018-01-25 Thread Jim Ingham via lldb-dev
I must admit I've never played around with C++ demangling, but I wonder if our purposes in demangling might inform how we do this? We use demangled names for a couple of purposes. One is to print names in backtraces and thread reporting when we stop. For the most part the requests we've gotte

Re: [lldb-dev] Huge mangled names are causing long delays when loading symbol table symbols

2018-01-25 Thread Erik Pilkington via lldb-dev
Hi, I'm not at all familiar with LLDB, but I've been doing some work on the demangler in libcxxabi. It's still a work in progress and I haven't yet copied the changes over to ItaniumDemangle, which AFAIK is what lldb uses. The demangler in libcxxabi now demangles the symbol you attached in 3.3

Re: [lldb-dev] Huge mangled names are causing long delays when loading symbol table symbols

2018-01-25 Thread Pavel Labath via lldb-dev
The mangled name length threshold would be the easiest to implement. However, I fear we may not be able to find a good cutoff length, because it's not the length of it that matters, but the number (and recursiveness) of back-references. For example, I was able to find a mangled name of 757 characte