From b513773cb2422dbf69979d5d29474c7a18c60654 Mon Sep 17 00:00:00 2001 From: "mostang.com!davidm" Date: Thu, 3 Apr 2003 07:59:15 +0000 Subject: [PATCH] (unw_init_local): Do sc_rbs_base manipulation only if HAVE_SYS_UC_ACCES_H is not defined. (Logical change 1.75) --- src/ia64/Ginit_local-ia64.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ia64/Ginit_local-ia64.c b/src/ia64/Ginit_local-ia64.c index ae6b0a9e..72da59b9 100644 --- a/src/ia64/Ginit_local-ia64.c +++ b/src/ia64/Ginit_local-ia64.c @@ -52,6 +52,7 @@ unw_init_local (unw_cursor_t *cursor, ucontext_t *uc) ia64_init (); } +#ifndef HAVE_SYS_UC_ACCESS_H /* The bsp value stored by getcontext() points to the *end* of the register frame of the initial function. We correct for this by storing the adjusted value in sc_rbs_base, which isn't used by @@ -63,6 +64,7 @@ unw_init_local (unw_cursor_t *cursor, ucontext_t *uc) sol = (uc->uc_mcontext.sc_ar_pfs >> 7) & 0x7f; uc->uc_mcontext.sc_rbs_base = ia64_rse_skip_regs (uc->uc_mcontext.sc_ar_bsp, -sol); +#endif c->as = unw_local_addr_space; c->as_arg = uc;