Merge "vndk-vtable-dumper: Use demangled name of symbol while handling symbol aliasing." into pi-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
1c0887bc0d
@@ -329,9 +329,10 @@ SymbolRef ELFSharedObject<ELFT>::matchValueToSymbol(
|
||||
const std::string ClassName(Vtablep->getDemangledName().substr(pos));
|
||||
for (const SymbolRef &Symbol : SymVec) {
|
||||
StringRef SymbolName = UnWrap(Symbol.getName());
|
||||
if (SymbolName.str().find(ClassName) != std::string::npos)
|
||||
if (demangle(SymbolName.str()).find(ClassName) != std::string::npos) {
|
||||
return Symbol;
|
||||
}
|
||||
}
|
||||
// Return the 1st Symbol by default.
|
||||
return SymVec[0];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user