1
0
Fork 0
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:
Alexander Esilevich 2010-07-29 07:10:27 +07:00
parent cac775a482
commit 582c652231

View file

@ -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 *