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:
parent
43ccdff0d9
commit
ad6f2319b9
1 changed files with 9 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue