https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69997

--- Comment #3 from Liu Qiang <tcliuqiang at msn dot com> ---
Latest info:
uw_frmae_state_for return: 5
_URC_END_OF_STACK = 5,

And I find that it is harmless to remove the gcc_assert(...).
will it be the resolution?


uw_init_context_1 (struct _Unwind_Context *context,
                   void *outer_cfa, void *outer_ra)
{
  void *ra = __builtin_extract_return_addr (__builtin_return_address (0));
  _Unwind_FrameState fs;
  _Unwind_SpTmp sp_slot;
  _Unwind_Reason_Code code;

  memset (context, 0, sizeof (struct _Unwind_Context));
  context->ra = ra;
  if (!ASSUME_EXTENDED_UNWIND_CONTEXT)
    context->flags = EXTENDED_CONTEXT_BIT;

  code = uw_frame_state_for (context, &fs);
  printf("uw_frmae_state_for return: %d\n", code);
  if(ignore_assert_control)
  {

  }
  else
  {
          gcc_assert (code == _URC_NO_REASON);
  }

Reply via email to