aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-03-21 20:18:19 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2020-03-21 20:19:38 +0300
commit5dc92e796291992dd81567cf5cb58624f58d0e43 (patch)
treee67905a908486d1aa55fefc15df40b40f43346e6 /test
parenttest: foobar -> symbols (diff)
downloadwinapi-debug-5dc92e796291992dd81567cf5cb58624f58d0e43.tar.gz
winapi-debug-5dc92e796291992dd81567cf5cb58624f58d0e43.zip
CallStack: overhaul the API
Diffstat (limited to 'test')
-rw-r--r--test/call_stack.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/call_stack.cpp b/test/call_stack.cpp
index e193b01..1f6ce37 100644
--- a/test/call_stack.cpp
+++ b/test/call_stack.cpp
@@ -8,9 +8,7 @@ namespace test {
void call_stack() {
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]) << ' '
- << pdb::call_stack::pretty_print_address(dbghelp, call_stack.frames[i]) << '\n';
+ call_stack.dump(std::cout, dbghelp);
}
void __declspec(noinline) baz() {