mirror of
https://github.com/intel/llvm.git
synced 2026-01-14 20:10:50 +08:00
[lldb] Allow SymbolTable regex search functions to match mangled name
It may be useful to search symbol table entries by mangled instead of demangled names. Add this optional functionality in the SymbolTable functions. Differential Revision: https://reviews.llvm.org/D130803
This commit is contained in:
@@ -1367,9 +1367,9 @@ void Module::FindSymbolsWithNameAndType(ConstString name,
|
||||
}
|
||||
}
|
||||
|
||||
void Module::FindSymbolsMatchingRegExAndType(const RegularExpression ®ex,
|
||||
SymbolType symbol_type,
|
||||
SymbolContextList &sc_list) {
|
||||
void Module::FindSymbolsMatchingRegExAndType(
|
||||
const RegularExpression ®ex, SymbolType symbol_type,
|
||||
SymbolContextList &sc_list, Mangled::NamePreference mangling_preference) {
|
||||
// No need to protect this call using m_mutex all other method calls are
|
||||
// already thread safe.
|
||||
LLDB_SCOPED_TIMERF(
|
||||
@@ -1379,7 +1379,7 @@ void Module::FindSymbolsMatchingRegExAndType(const RegularExpression ®ex,
|
||||
std::vector<uint32_t> symbol_indexes;
|
||||
symtab->FindAllSymbolsMatchingRexExAndType(
|
||||
regex, symbol_type, Symtab::eDebugAny, Symtab::eVisibilityAny,
|
||||
symbol_indexes);
|
||||
symbol_indexes, mangling_preference);
|
||||
SymbolIndicesToSymbolContextList(symtab, symbol_indexes, sc_list);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user