Fixup commit d93d96ad833390519ea68a2df22dd55dd26a3214 ("Fix compilation
on IA64"), and replace the dwarf_find_unwind_table() call with
tdep_find_unwind_table().
Fixes linkage error on IA64:
../src/.libs/libunwind-coredump.so: undefined reference to
`dwarf_find_unwind_table'
---
src/coredump/_UCD_find_proc_info.c | 4 ++--
src/coredump/_UPT_get_dyn_info_list_addr.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/coredump/_UCD_find_proc_info.c
b/src/coredump/_UCD_find_proc_info.c
index b727ea9..dc4365e 100644
--- a/src/coredump/_UCD_find_proc_info.c
+++ b/src/coredump/_UCD_find_proc_info.c
@@ -68,9 +68,9 @@ get_unwind_info(struct UCD_info *ui, unw_addr_space_t as,
unw_word_t ip)
/* Here, SEGBASE is the starting-address of the (mmap'ped) segment
which covers the IP we're looking for. */
- if (dwarf_find_unwind_table(&ui->edi, as, phdr->backing_filename, segbase,
mapoff, ip) < 0)
+ if (tdep_find_unwind_table(&ui->edi, as, phdr->backing_filename, segbase,
mapoff, ip) < 0)
{
- Debug(1, "%s returns error: dwarf_find_unwind_table failed\n", __func__);
+ Debug(1, "%s returns error: tdep_find_unwind_table failed\n", __func__);
return -UNW_ENOINFO;
}
diff --git a/src/coredump/_UPT_get_dyn_info_list_addr.c
b/src/coredump/_UPT_get_dyn_info_list_addr.c
index f1e6568..c245ac1 100644
--- a/src/coredump/_UPT_get_dyn_info_list_addr.c
+++ b/src/coredump/_UPT_get_dyn_info_list_addr.c
@@ -56,7 +56,7 @@ get_list_addr (unw_addr_space_t as, unw_word_t *dil_addr,
void *arg,
Debug (16, "checking object %s\n", path);
- di = dwarf_find_unwind_table (&ui->edi, as, path, lo, off);
+ di = tdep_find_unwind_table (&ui->edi, as, path, lo, off);
if (di)
{
res = _Uia64_find_dyn_list (as, di, arg);
--
1.7.9.5
_______________________________________________
Libunwind-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/libunwind-devel