Crashlog: Windows: Fix sign error for symbol offsets in crashlog
This commit is contained in:
@@ -574,7 +574,7 @@ char *CrashLogWindows::AppendDecodedStacktrace(char *buffer, const char *last) c
|
|||||||
free(demangled);
|
free(demangled);
|
||||||
#endif
|
#endif
|
||||||
if (symbol_ok && bfd_info.function_addr) {
|
if (symbol_ok && bfd_info.function_addr) {
|
||||||
if (bfd_info.function_addr < frame.AddrPC.Offset) {
|
if (bfd_info.function_addr > frame.AddrPC.Offset) {
|
||||||
buffer += seprintf(buffer, last, " - " OTTD_PRINTF64U, static_cast<DWORD64>(bfd_info.function_addr) - frame.AddrPC.Offset);
|
buffer += seprintf(buffer, last, " - " OTTD_PRINTF64U, static_cast<DWORD64>(bfd_info.function_addr) - frame.AddrPC.Offset);
|
||||||
} else {
|
} else {
|
||||||
buffer += seprintf(buffer, last, " + " OTTD_PRINTF64U, frame.AddrPC.Offset - static_cast<DWORD64>(bfd_info.function_addr));
|
buffer += seprintf(buffer, last, " + " OTTD_PRINTF64U, frame.AddrPC.Offset - static_cast<DWORD64>(bfd_info.function_addr));
|
||||||
|
Reference in New Issue
Block a user