[Lldb-commits] [PATCH] D17618: Improve looking up functions with equivalent mangled names.
Siva Chandra via lldb-commits
lldb-commits at lists.llvm.org
Thu Feb 25 10:58:29 PST 2016
sivachandra created this revision.
sivachandra added reviewers: spyffe, clayborg.
sivachandra added a subscriber: lldb-commits.
This, in a way, extends the existing "workaroud" by matching function
argument type names individually [instead of just matching "(args1...)"
with "(args2...)"]. For type name matching, a new method
CPlusPlusLanguage::TypeNamesEqual has been added. For now, this method
can only handle variations like:
<typename> * vs <typename>*
const <typename> vs <typename> const
const <typename> * const vs <typename> const * const
We can extend it to handle more complex name formats as needed.
The immediate benefit of this change is with evaluating std::map's
subscript operator when producer is GCC. Consider the following:
std::map<std::string, std::string> m;
m[s] = "one";
... ; // Break here
The command "expr m[s]" fails without this change if the producer is
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 17499 bytes
Desc: not available
More information about the lldb-commits