1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-09-29 18:09:29 +02:00

(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)
This commit is contained in:
mostang.com!davidm 2002-04-25 06:47:29 +00:00
parent c56126ea7b
commit c845317889

View file

@ -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);