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

--- Comment #5 from Liu Qiang <tcliuqiang at msn dot com> ---
Should I try to enable the MD_FALLBACK_FRAME_STATE_FOR for target specific
fallback mechanism?

in file src/gcc-5.3.0/libgcc/config/i386/linux-unwind.h, 

#ifndef inhibit_libc
#define MD_FALLBACK_FRAME_STATE_FOR x86_64_fallback_frame_state

I just want to know if anyone know how to disable the inhibit_libc?


static _Unwind_Reason_Code
uw_frame_state_for (struct _Unwind_Context *context, _Unwind_FrameState *fs)
{
  const struct dwarf_fde *fde;
  const struct dwarf_cie *cie;
  const unsigned char *aug, *insn, *end;

  memset (fs, 0, sizeof (*fs));
  context->args_size = 0;
  context->lsda = 0;

  if (context->ra == 0)
    return _URC_END_OF_STACK;

  fde = _Unwind_Find_FDE (context->ra + _Unwind_IsSignalFrame (context) - 1,
                          &context->bases);
  if (fde == NULL)
    {
#ifdef MD_FALLBACK_FRAME_STATE_FOR
      /* Couldn't find frame unwind info for this function.  Try a
         target-specific fallback mechanism.  This will necessarily
         not provide a personality routine or LSDA.  */
      return MD_FALLBACK_FRAME_STATE_FOR (context, fs);
#else
      return _URC_END_OF_STACK;
#endif
    }

Reply via email to