diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2017-05-20 03:05:51 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2017-05-20 03:05:51 +0300 |
commit | b8d84cbf8ee08e5150fe4ca08369daab277579bc (patch) | |
tree | 93ea6d730933071542544a2176778690e64fe195 /include/pdb | |
parent | don't load the same PDB twice (diff) | |
download | winapi-debug-b8d84cbf8ee08e5150fe4ca08369daab277579bc.tar.gz winapi-debug-b8d84cbf8ee08e5150fe4ca08369daab277579bc.zip |
hardening & refactoring
Diffstat (limited to 'include/pdb')
-rw-r--r-- | include/pdb/repo.hpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/include/pdb/repo.hpp b/include/pdb/repo.hpp index aa5c3c3..fa64260 100644 --- a/include/pdb/repo.hpp +++ b/include/pdb/repo.hpp @@ -35,7 +35,7 @@ namespace pdb private: Symbol symbol_from_buffer(const SymbolInfo&) const; - Symbol symbol_from_buffer(const Module&, const SymbolInfo&) const; + static Symbol symbol_from_buffer(const Module&, const SymbolInfo&); const Module& module_from_online_address(Address) const; const Module& module_from_offline_address(Address) const; @@ -45,9 +45,8 @@ namespace pdb const DbgHelp dbghelp; - std::map<Address, Module> online_modules; - std::map<Address, const Module&> offline_modules; - - std::unordered_set<file::ID> module_ids; + std::unordered_set<file::ID> file_ids; + std::map<Address, Module> online_bases; + std::map<Address, const Module&> offline_bases; }; } |