From c151774911b4ea658410cc6593dd40390862a168 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 16 Mar 2020 17:19:24 +0300 Subject: DbgHelp: start fixing the API --- test/call_stack.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/call_stack.cpp b/test/call_stack.cpp index c1fb0fd..e193b01 100644 --- a/test/call_stack.cpp +++ b/test/call_stack.cpp @@ -6,7 +6,7 @@ namespace test { void call_stack() { - pdb::DbgHelp dbghelp{true}; + const auto dbghelp = pdb::DbgHelp::current_process(); const auto call_stack = pdb::CallStack::capture(); for (std::size_t i = 0; i < call_stack.length; ++i) std::cout << pdb::format_address(call_stack.frames[i]) << ' ' -- cgit v1.2.3