diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2020-01-15 05:04:51 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2020-01-15 05:05:51 +0300 |
commit | 52dba9e60ea7712da45d889159acc0a30f2fbf82 (patch) | |
tree | baba0876a46939de5815f31116a4143ae4ef97c8 /include/pdb | |
parent | split symbol.hpp (diff) | |
download | winapi-debug-52dba9e60ea7712da45d889159acc0a30f2fbf82.tar.gz winapi-debug-52dba9e60ea7712da45d889159acc0a30f2fbf82.zip |
DbgHelp: add more enum_* methods
Diffstat (limited to 'include/pdb')
-rw-r--r-- | include/pdb/dbghelp.hpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/pdb/dbghelp.hpp b/include/pdb/dbghelp.hpp index 4f11e22..edb095c 100644 --- a/include/pdb/dbghelp.hpp +++ b/include/pdb/dbghelp.hpp @@ -25,8 +25,12 @@ public: ModuleInfo load_pdb(const std::string& path) const; + typedef std::function<void(const ModuleInfo&)> OnModule; + void enum_modules(const OnModule&) const; + typedef std::function<void(const SymbolInfo&)> OnSymbol; void enum_symbols(const ModuleInfo&, const OnSymbol&) const; + void enum_symbols(const OnSymbol&) const; SymbolInfo resolve_symbol(Address) const; SymbolInfo resolve_symbol(const std::string&) const; @@ -34,8 +38,6 @@ public: LineInfo resolve_line(Address) const; private: - ModuleInfo get_module_info(Address offline_base) const; - const HANDLE id = GetCurrentProcess(); bool closed = false; |