1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-12-24 12:13:42 +01:00

Lookup static proc-info via accessor's callback, not by directly

calling tdep_find_proc_info().  The latter doesn't works in the
REMOTE_ONLY case.

(Logical change 1.138)
This commit is contained in:
mostang.com!davidm 2003-12-05 06:42:28 +00:00
parent 98f95e6ee4
commit 4d40b374b9

View file

@ -32,10 +32,11 @@ int
unw_get_proc_info_by_ip (unw_addr_space_t as, unw_word_t ip,
unw_proc_info_t *pi, void *as_arg)
{
unw_accessors_t *a = unw_get_accessors (as);
int ret;
ret = unwi_find_dynamic_proc_info (as, ip, pi, 0, as_arg);
if (ret == -UNW_ENOINFO)
ret = tdep_find_proc_info (as, ip, pi, 0, as_arg);
ret = (*a->find_proc_info) (as, ip, pi, 0, as_arg);
return ret;
}