mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2025-01-06 01:23:41 +01:00
find_proc_info refactoring
This commit is contained in:
parent
cac775a482
commit
582c652231
1 changed files with 6 additions and 8 deletions
|
@ -744,15 +744,13 @@ dwarf_find_proc_info (unw_addr_space_t as, unw_word_t ip,
|
|||
|
||||
/* search the table: */
|
||||
if (cb_data.di.format != -1)
|
||||
ret = dwarf_search_unwind_table (as, ip, &cb_data.di,
|
||||
pi, need_unwind_info, arg);
|
||||
return dwarf_search_unwind_table (as, ip, &cb_data.di,
|
||||
pi, need_unwind_info, arg);
|
||||
else if (cb_data.di_debug.format != -1)
|
||||
return dwarf_search_unwind_table (as, ip, &cb_data.di_debug, pi,
|
||||
need_unwind_info, arg);
|
||||
else
|
||||
ret = -UNW_ENOINFO;
|
||||
|
||||
if (ret == -UNW_ENOINFO && cb_data.di_debug.format != -1)
|
||||
ret = dwarf_search_unwind_table (as, ip, &cb_data.di_debug, pi,
|
||||
need_unwind_info, arg);
|
||||
return ret;
|
||||
return -UNW_ENOINFO;
|
||||
}
|
||||
|
||||
static inline const struct table_entry *
|
||||
|
|
Loading…
Reference in a new issue