mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2025-01-27 10:40:29 +01:00
(_UPT_get_dyn_info_list_addr): Add debug statements.
Correct pre-increment to post-increment. (Logical change 1.55)
This commit is contained in:
parent
2fbf4cece7
commit
c4b73c6198
1 changed files with 11 additions and 3 deletions
|
@ -50,6 +50,8 @@ _UPT_get_dyn_info_list_addr (unw_addr_space_t as, unw_word_t *dil_addr,
|
||||||
|
|
||||||
ui->checked_dyn_info_list_addr = 1;
|
ui->checked_dyn_info_list_addr = 1;
|
||||||
|
|
||||||
|
debug (100, "%s: looking for dyn_info list\n", __FUNCTION__);
|
||||||
|
|
||||||
#if UNW_TARGET_IA64
|
#if UNW_TARGET_IA64
|
||||||
maps_init (&mi, ui->pid);
|
maps_init (&mi, ui->pid);
|
||||||
while (maps_next (&mi, &lo, &hi, &off, path))
|
while (maps_next (&mi, &lo, &hi, &off, path))
|
||||||
|
@ -60,17 +62,23 @@ _UPT_get_dyn_info_list_addr (unw_addr_space_t as, unw_word_t *dil_addr,
|
||||||
if (elf_map_image (&ui->ei, path) < 0)
|
if (elf_map_image (&ui->ei, path) < 0)
|
||||||
return -UNW_ENOINFO;
|
return -UNW_ENOINFO;
|
||||||
|
|
||||||
|
debug (100, "%s: checking object %s\n", __FUNCTION__, path);
|
||||||
|
|
||||||
di = _UPTi_find_unwind_table (ui, as, path, lo, off);
|
di = _UPTi_find_unwind_table (ui, as, path, lo, off);
|
||||||
if (di)
|
if (di)
|
||||||
{
|
{
|
||||||
res = _Uia64_find_dyn_list (as, di->u.ti.table_data,
|
res = _Uia64_find_dyn_list (as, di->u.ti.table_data,
|
||||||
(di->u.ti.table_len
|
(di->u.ti.table_len
|
||||||
* sizeof (di->u.ti.table_data[0])),
|
* sizeof (di->u.ti.table_data[0])),
|
||||||
di->u.ti.segbase, arg);
|
di->u.ti.segbase, di->gp, arg);
|
||||||
if (res && ++count == 0)
|
if (res && count++ == 0)
|
||||||
|
{
|
||||||
|
debug (100, "%s: dyn_info_list_addr = 0x%lx\n",
|
||||||
|
__FUNCTION__, (long) res);
|
||||||
ui->dyn_info_list_addr = *dil_addr = res;
|
ui->dyn_info_list_addr = *dil_addr = res;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
maps_close (&mi);
|
maps_close (&mi);
|
||||||
#else
|
#else
|
||||||
# error Implement me, please.
|
# error Implement me, please.
|
||||||
|
|
Loading…
Reference in a new issue