Skip to content

Commit

Permalink
Fixes for msvc
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy-rifkin committed Feb 19, 2025
1 parent dff5b8f commit 74b5ac6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/resolver/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ struct options {
};

void resolve(const options& opts, cpptrace::frame_ptr address) {
cpptrace::object_frame obj_frame{0, address, opts.path};
cpptrace::object_frame obj_frame{0, address, opts.path.string()};
auto start = std::chrono::high_resolution_clock::now();
std::vector<cpptrace::stacktrace_frame> trace = cpptrace::detail::resolve_frames({obj_frame});
auto end = std::chrono::high_resolution_clock::now();
Expand Down Expand Up @@ -102,6 +102,7 @@ int main(int argc, char** argv) CPPTRACE_TRY {
std::this_thread::sleep_for(std::chrono::seconds(60));
}
}
return 0;
} CPPTRACE_CATCH(const std::exception& e) {
fmt::println(stderr, "Caught exception {}: {}", cpptrace::demangle(typeid(e).name()), e.what());
cpptrace::from_current_exception().print();
Expand Down

0 comments on commit 74b5ac6

Please sign in to comment.