From 5d36914c9beb7630aa2059c1c723dd217ccf3e76 Mon Sep 17 00:00:00 2001 From: Tommi Rantala Date: Tue, 31 Jul 2012 10:41:40 +0300 Subject: [PATCH] IA64: use tdep_find_unwind_table() in coredump lib 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 b727ea90..dc4365eb 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 f1e65681..c245ac17 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);