From a1ce4c307e9a6cc98404eca9500c8cc10e812273 Mon Sep 17 00:00:00 2001 From: "mostang.com!davidm" Date: Sat, 20 Mar 2004 09:54:28 +0000 Subject: [PATCH] (unw_tdep_getcontext): Direct it to UNW_ARCH_OBJ(getcontext). (Logical change 1.186) --- include/libunwind-ia64.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/include/libunwind-ia64.h b/include/libunwind-ia64.h index 19ac30bd..2b64991b 100644 --- a/include/libunwind-ia64.h +++ b/include/libunwind-ia64.h @@ -149,17 +149,14 @@ unw_tdep_save_loc_t; /* On IA-64, we can directly use ucontext_t as the unwind context. */ typedef ucontext_t unw_tdep_context_t; -/* XXX this is not ideal: an application should not be prevented from - using the "getcontext" name just because it's using libunwind. We - can't just use __getcontext() either, because that isn't exported - by glibc... */ -#define unw_tdep_getcontext(uc) (getcontext (uc), 0) - #define unw_tdep_is_fpreg(r) ((unsigned) ((r) - UNW_IA64_FR) < 128) #include "libunwind-dynamic.h" #include "libunwind-common.h" +#define unw_tdep_getcontext UNW_ARCH_OBJ (getcontext) +extern int unw_tdep_getcontext (ucontext_t *); + /* This is a helper routine to search an ia64 unwind table. If the address-space argument AS points to something other than the local address-space, the memory for the unwind-info will be allocated