From c8453178899d42fcb5fc2cca6a43f6122378ae3c Mon Sep 17 00:00:00 2001 From: "mostang.com!davidm" Date: Thu, 25 Apr 2002 06:47:29 +0000 Subject: [PATCH] (getunwind): Define only if HAVE_GETUNWIND is not defined. (_Uia64_glibc_acquire_unwind_info): Correct typo: dl_iterate_phdr() is successful only if it returns a positive value. (Logical change 1.18) --- src/ia64/tables-glibc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ia64/tables-glibc.c b/src/ia64/tables-glibc.c index 312bd699..856419a0 100644 --- a/src/ia64/tables-glibc.c +++ b/src/ia64/tables-glibc.c @@ -40,11 +40,11 @@ License. */ # error You need GLIBC 2.2.4 or later on IA-64 Linux #endif -#if 0 +#ifdef HAVE_GETUNWIND extern unsigned long getunwind (void *buf, size_t len); -#else +#else /* HAVE_GETUNWIND */ /* XXX fix me */ @@ -61,7 +61,7 @@ getunwind (void *buf, size_t len) return syscall (SYS_getunwind, buf, len); } -#endif +#endif /* HAVE_GETUNWIND */ static int get_kernel_table (void *ptr) @@ -187,7 +187,7 @@ _Uia64_glibc_acquire_unwind_info (unw_word_t ip, void *info, void *arg) { ((unw_ia64_table_t *) info)->segbase = ip; /* this is cheap... */ - if (dl_iterate_phdr (callback, info) >= 0) + if (dl_iterate_phdr (callback, info) > 0) return 0; return get_kernel_table (info);