Fix ARM+Suse compilation

This commit is contained in:
Antony Polukhin
2017-07-15 17:35:31 +03:00
parent 9c1ed7fc95
commit f853dbfc69

View File

@@ -26,14 +26,16 @@ struct unwind_state {
};
inline _Unwind_Reason_Code unwind_callback(::_Unwind_Context* context, void* arg) {
// Note: do not write `::_Unwind_GetIP` because it is a macro on some platforms.
// Use `_Unwind_GetIP` instead!
unwind_state* const state = static_cast<unwind_state*>(arg);
if (state->frames_to_skip) {
--state->frames_to_skip;
return ::_Unwind_GetIP(context) ? ::_URC_NO_REASON : ::_URC_END_OF_STACK;
return _Unwind_GetIP(context) ? ::_URC_NO_REASON : ::_URC_END_OF_STACK;
}
*state->current = reinterpret_cast<native_frame_ptr_t>(
::_Unwind_GetIP(context)
_Unwind_GetIP(context)
);
++state->current;