mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-12-23 03:53:43 +01:00
Call dwarf_step only if CONFIG_DEBUG_FRAME is defined
The ARM EABI does not use the .eh_frame and .eh_frame_hdr sections for unwinding. Therefore it doesn't make sense to call dwarf_step if CONFIG_DEBUG_FRAME is not defined.
This commit is contained in:
parent
786882ff8c
commit
d84e5d5d24
1 changed files with 2 additions and 0 deletions
|
@ -171,6 +171,7 @@ unw_step (unw_cursor_t *cursor)
|
|||
if (unw_is_signal_frame (cursor))
|
||||
return unw_handle_signal_frame (cursor);
|
||||
|
||||
#ifdef CONFIG_DEBUG_FRAME
|
||||
/* First, try DWARF-based unwinding. */
|
||||
if (UNW_TRY_METHOD(UNW_ARM_METHOD_DWARF))
|
||||
{
|
||||
|
@ -188,6 +189,7 @@ unw_step (unw_cursor_t *cursor)
|
|||
return ret;
|
||||
}
|
||||
}
|
||||
#endif /* CONFIG_DEBUG_FRAME */
|
||||
|
||||
/* Next, try extbl-based unwinding. */
|
||||
if (UNW_TRY_METHOD (UNW_ARM_METHOD_EXIDX))
|
||||
|
|
Loading…
Reference in a new issue