aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/pdb/dbghelp.hpp
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-01-15 19:20:50 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2020-01-16 01:21:32 +0300
commit3dc0b9a3ae90dcac2f1150e6b2dfb0a5a310355b (patch)
treefca7da94fdc0f4693a8b49b765738b9e842a1407 /include/pdb/dbghelp.hpp
parentlab_rat -> foobar (diff)
downloadwinapi-debug-3dc0b9a3ae90dcac2f1150e6b2dfb0a5a310355b.tar.gz
winapi-debug-3dc0b9a3ae90dcac2f1150e6b2dfb0a5a310355b.zip
add call stack collection support
Diffstat (limited to '')
-rw-r--r--include/pdb/dbghelp.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/pdb/dbghelp.hpp b/include/pdb/dbghelp.hpp
index 2809eac..db9638e 100644
--- a/include/pdb/dbghelp.hpp
+++ b/include/pdb/dbghelp.hpp
@@ -18,7 +18,7 @@ namespace pdb {
class DbgHelp {
public:
- DbgHelp();
+ DbgHelp(bool invade_current_process = false);
~DbgHelp();
void close();
@@ -28,6 +28,8 @@ public:
typedef std::function<void(const ModuleInfo&)> OnModule;
void enum_modules(const OnModule&) const;
+ ModuleInfo resolve_module(Address) const;
+
typedef std::function<void(const SymbolInfo&)> OnSymbol;
static constexpr auto all_symbols = "*!*";
void enum_symbols(const ModuleInfo&, const std::string& mask, const OnSymbol&) const;