summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.h
diff options
context:
space:
mode:
authorAaron Smith <aaron.smith@microsoft.com>2017-12-22 05:26:50 +0000
committerAaron Smith <aaron.smith@microsoft.com>2017-12-22 05:26:50 +0000
commit86e9434db97bf630341801122bb81727dcb3e7b2 (patch)
tree4dd868d579d94bfd326783aea7a5234ab676c5a7 /lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.h
parent921aff6e908d19c811e7bcf9a019eade56609e71 (diff)
downloadbcm5719-llvm-86e9434db97bf630341801122bb81727dcb3e7b2.tar.gz
bcm5719-llvm-86e9434db97bf630341801122bb81727dcb3e7b2.zip
[lldb] Stop searching for a symbol in a pdb by regex
Summary: It was possible when searching for a symbol by regex in a pdb that an invalid regex would cause an exception on Windows. This updates the code to avoid throwing an exception. When fixing the exception it was decided there is no reason to search for a symbol in a pdb by regex. To support this, SymbolFilePDB::FindTypes() now only searches for types by name and no longer calls FindTypesByRegEx(). Reviewers: zturner, lldb-commits Reviewed By: zturner Subscribers: clayborg Differential Revision: https://reviews.llvm.org/D41086 llvm-svn: 321344
Diffstat (limited to 'lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.h')
-rw-r--r--lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.h b/lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.h
index efd2cb081dc..d78358c714a 100644
--- a/lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.h
+++ b/lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.h
@@ -172,7 +172,8 @@ private:
const llvm::pdb::PDBSymbolCompiland &cu,
llvm::DenseMap<uint32_t, uint32_t> &index_map) const;
- void FindTypesByRegex(const std::string &regex, uint32_t max_matches,
+ void FindTypesByRegex(const lldb_private::RegularExpression &regex,
+ uint32_t max_matches,
lldb_private::TypeMap &types);
void FindTypesByName(const std::string &name, uint32_t max_matches,
OpenPOWER on IntegriCloud