mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-26 09:07:38 +01:00
(local_find_proc_info): When compiling for libunwind-ia64, declare
_U_dyn_info_list_addr as weak and if it remained undefined, return -UNW_ENOINFO. (Logical change 1.282)
This commit is contained in:
parent
4e731a5572
commit
d15f52662a
1 changed files with 6 additions and 0 deletions
|
@ -46,6 +46,12 @@ local_find_proc_info (unw_addr_space_t as, unw_word_t ip, unw_proc_info_t *pi,
|
|||
unw_dyn_info_list_t *list;
|
||||
unw_dyn_info_t *di;
|
||||
|
||||
#ifndef UNW_LOCAL_ONLY
|
||||
# pragma weak _U_dyn_info_list_addr
|
||||
if (!_U_dyn_info_list_addr)
|
||||
return -UNW_ENOINFO;
|
||||
#endif
|
||||
|
||||
list = (unw_dyn_info_list_t *) _U_dyn_info_list_addr ();
|
||||
for (di = list->first; di; di = di->next)
|
||||
if (ip >= di->start_ip && ip < di->end_ip)
|
||||
|
|
Loading…
Reference in a new issue