Skip to content

Commit

Permalink
callstack return null when not arm on platform Android
Browse files Browse the repository at this point in the history
  • Loading branch information
garryyan committed Jun 30, 2017
1 parent 3961ee7 commit c0c4697
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mars/comm/android/callstack.cc
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ static _Unwind_Reason_Code trace_function(_Unwind_Context* context, void* arg) {
//_Unwind_GetGR crash
return _URC_NO_REASON;
#elif !defined(__arm__)
ip = (void*)_Unwind_GetGR(context, 15);
// ip = (void*)_Unwind_GetGR(context, 15);
return _URC_NO_REASON;
#else
_Unwind_VRS_Get(context, _UVRSC_CORE, 15, _UVRSD_UINT32, &ip);
#endif
Expand Down

0 comments on commit c0c4697

Please sign in to comment.