From d17fe33abfacc30072845309e6b8e2289cf2823f Mon Sep 17 00:00:00 2001 From: Jeremy <51220084+jeremy-rifkin@users.noreply.github.com> Date: Tue, 27 Feb 2024 00:39:58 -0600 Subject: [PATCH] Try to fix build errors --- src/symbols/symbols_with_addr2line.cpp | 3 ++- src/symbols/symbols_with_libbacktrace.cpp | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/symbols/symbols_with_addr2line.cpp b/src/symbols/symbols_with_addr2line.cpp index 403b5821..842ddd69 100644 --- a/src/symbols/symbols_with_addr2line.cpp +++ b/src/symbols/symbols_with_addr2line.cpp @@ -269,7 +269,8 @@ namespace addr2line { // TODO: Refactor better std::vector trace(frames.size(), null_frame); for(std::size_t i = 0; i < frames.size(); i++) { - trace[i].address = frames[i].raw_address; + trace[i].raw_address = frames[i].raw_address; + trace[i].object_address = frames[i].object_address; // Set what is known for now, and resolutions from addr2line should overwrite trace[i].filename = frames[i].object_path; } diff --git a/src/symbols/symbols_with_libbacktrace.cpp b/src/symbols/symbols_with_libbacktrace.cpp index c31c488a..2d7937b4 100644 --- a/src/symbols/symbols_with_libbacktrace.cpp +++ b/src/symbols/symbols_with_libbacktrace.cpp @@ -22,7 +22,7 @@ namespace detail { namespace libbacktrace { int full_callback(void* data, std::uintptr_t address, const char* file, int line, const char* symbol) { stacktrace_frame& frame = *static_cast(data); - frame.address = address; + frame.raw_address = address; frame.line = line; frame.filename = file ? file : ""; frame.symbol = symbol ? symbol : ""; @@ -31,7 +31,7 @@ namespace libbacktrace { void syminfo_callback(void* data, std::uintptr_t address, const char* symbol, std::uintptr_t, std::uintptr_t) { stacktrace_frame& frame = *static_cast(data); - frame.address = address; + frame.raw_address = address; frame.line = 0; frame.filename = ""; frame.symbol = symbol ? symbol : "";