1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-11-29 18:27:37 +01:00

(unw_tdep_getcontext): On HP-UX, use getcontext() instead of

_Uia64_getcontext().

(Logical change 1.220)
This commit is contained in:
mostang.com!davidm 2004-05-04 20:14:02 +00:00
parent 43ccdff0d9
commit ad6f2319b9

View file

@ -154,8 +154,15 @@ typedef ucontext_t unw_tdep_context_t;
#include "libunwind-dynamic.h" #include "libunwind-dynamic.h"
#include "libunwind-common.h" #include "libunwind-common.h"
#define unw_tdep_getcontext UNW_ARCH_OBJ (getcontext) #ifdef __hpux
extern int unw_tdep_getcontext (ucontext_t *); /* In theory, we could use _Uia64_getcontext() on HP-UX as well, but
the benefit of doing so would be marginal given that it can't
support UNW_LOCAL_ONLY. */
# define unw_tdep_getcontext getcontext
#else
# define unw_tdep_getcontext UNW_ARCH_OBJ (getcontext)
extern int unw_tdep_getcontext (unw_tdep_context_t *);
#endif
/* This is a helper routine to search an ia64 unwind table. If the /* 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 argument AS points to something other than the local