mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2025-01-25 17:50:29 +01:00
(local_find_proc_info): Take new LIST argument.
(unwi_find_dynamic_proc_info): Pass LIST argument to local_find_proc_info(). (Logical change 1.151)
This commit is contained in:
parent
98f917270f
commit
0b29e6839b
1 changed files with 7 additions and 5 deletions
|
@ -31,13 +31,13 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||||
#ifndef UNW_REMOTE_ONLY
|
#ifndef UNW_REMOTE_ONLY
|
||||||
|
|
||||||
static inline int
|
static inline int
|
||||||
local_find_proc_info (unw_addr_space_t as, unw_word_t ip,
|
local_find_proc_info (unw_dyn_info_list_t *list,
|
||||||
unw_proc_info_t *pi,
|
unw_addr_space_t as, unw_word_t ip, unw_proc_info_t *pi,
|
||||||
int need_unwind_info, void *arg)
|
int need_unwind_info, void *arg)
|
||||||
{
|
{
|
||||||
unw_dyn_info_t *di;
|
unw_dyn_info_t *di;
|
||||||
|
|
||||||
for (di = _U_dyn_info_list.first; di; di = di->next)
|
for (di = list->first; di; di = di->next)
|
||||||
if (ip >= di->start_ip && ip < di->end_ip)
|
if (ip >= di->start_ip && ip < di->end_ip)
|
||||||
return unwi_extract_dynamic_proc_info (as, ip, pi, di, need_unwind_info,
|
return unwi_extract_dynamic_proc_info (as, ip, pi, di, need_unwind_info,
|
||||||
arg);
|
arg);
|
||||||
|
@ -73,13 +73,15 @@ unwi_find_dynamic_proc_info (unw_addr_space_t as, unw_word_t ip,
|
||||||
void *arg)
|
void *arg)
|
||||||
{
|
{
|
||||||
#ifdef UNW_LOCAL_ONLY
|
#ifdef UNW_LOCAL_ONLY
|
||||||
return local_find_proc_info (as, ip, pi, need_unwind_info, arg);
|
return local_find_proc_info (&_U_dyn_info_list,
|
||||||
|
as, ip, pi, need_unwind_info, arg);
|
||||||
#else
|
#else
|
||||||
# ifdef UNW_REMOTE_ONLY
|
# ifdef UNW_REMOTE_ONLY
|
||||||
return remote_find_proc_info (as, ip, pi, need_unwind_info, arg);
|
return remote_find_proc_info (as, ip, pi, need_unwind_info, arg);
|
||||||
# else
|
# else
|
||||||
if (as == unw_local_addr_space)
|
if (as == unw_local_addr_space)
|
||||||
return local_find_proc_info (as, ip, pi, need_unwind_info, arg);
|
return local_find_proc_info ((unw_dyn_info_t *) _U_dyn_info_list_addr (),
|
||||||
|
as, ip, pi, need_unwind_info, arg);
|
||||||
else
|
else
|
||||||
return remote_find_proc_info (as, ip, pi, need_unwind_info, arg);
|
return remote_find_proc_info (as, ip, pi, need_unwind_info, arg);
|
||||||
# endif
|
# endif
|
||||||
|
|
Loading…
Reference in a new issue