freebsd-ports/games/opendungeons/files/patch-source_utils_StackTraceUnix.cpp
Pawel Pekala da465b1377 OpenDungeons is an open source, real time strategy game sharing game elements
with the Dungeon Keeper series and Evil Genius. Players build an underground
dungeon which is inhabited by creatures. Players fight each other for control
of the underground by indirectly commanding their creatures, directly casting
spells in combat, and luring enemies into sinister traps.

WWW: https://opendungeons.github.io/
2018-01-25 19:44:26 +00:00

14 lines
780 B
C++

--- source/utils/StackTraceUnix.cpp.orig 2016-08-24 19:52:29 UTC
+++ source/utils/StackTraceUnix.cpp
@@ -105,9 +105,9 @@ void StackTracePrintPrivateData::critErrHandler(int si
sig_ucontext_t* uc = static_cast<sig_ucontext_t*>(ucontext);
#if defined(__i386__) // gcc specific
- caller_address = reinterpret_cast<void*>(uc->uc_mcontext.eip); // EIP: x86 specific
+ caller_address = reinterpret_cast<void*>(uc->uc_mcontext.sc_eip); // EIP: x86 specific
#elif defined(__x86_64__) // gcc specific
- caller_address = reinterpret_cast<void*>(uc->uc_mcontext.rip); // RIP: x86_64 specific
+ caller_address = reinterpret_cast<void*>(uc->uc_mcontext.sc_rip); // RIP: x86_64 specific
#else
#error Unsupported architecture. // TODO: Add support for other arch.
#endif