diff options
| author | Augusto Noronha <augusto2112@me.com> | 2022-07-29 15:19:17 -0700 |
|---|---|---|
| committer | Augusto Noronha <augusto2112@me.com> | 2022-08-03 10:55:32 -0700 |
| commit | 3aef968ec3faada22319aaa3530776974082d2d5 (patch) | |
| tree | abfe40ef8ac2b41867f79e38892b9293093136a5 /lldb/source/Core/Module.cpp | |
| parent | f23076f6c5668aa8535da6b80b36f6bdc41b44b2 (diff) | |
[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
Diffstat (limited to 'lldb/source/Core/Module.cpp')
| -rw-r--r-- | lldb/source/Core/Module.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lldb/source/Core/Module.cpp b/lldb/source/Core/Module.cpp index 893e20837124..0d4466a13d25 100644 --- a/lldb/source/Core/Module.cpp +++ b/lldb/source/Core/Module.cpp @@ -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); } } |
