From 52dba9e60ea7712da45d889159acc0a30f2fbf82 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Wed, 15 Jan 2020 05:04:51 +0300 Subject: DbgHelp: add more enum_* methods --- include/pdb/dbghelp.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include/pdb') 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 OnModule; + void enum_modules(const OnModule&) const; + typedef std::function 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; -- cgit v1.2.3