aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-03-16 17:19:24 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2020-03-16 17:19:24 +0300
commitc151774911b4ea658410cc6593dd40390862a168 (patch)
tree2d364e74bfb9923236fdc53d8cc7b64df3dcc883 /test
parentTravis: ignore everything in .dockerignore (diff)
downloadwinapi-debug-c151774911b4ea658410cc6593dd40390862a168.tar.gz
winapi-debug-c151774911b4ea658410cc6593dd40390862a168.zip
DbgHelp: start fixing the API
Diffstat (limited to '')
-rw-r--r--test/call_stack.cpp2
1 files changed, 1 insertions, 1 deletions
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]) << ' '