1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2025-01-10 19:23:41 +01:00

(unw_init_local): Do sc_rbs_base manipulation only if HAVE_SYS_UC_ACCES_H is not

defined.

(Logical change 1.75)
This commit is contained in:
mostang.com!davidm 2003-04-03 07:59:15 +00:00
parent 3b5cb41875
commit b513773cb2

View file

@ -52,6 +52,7 @@ unw_init_local (unw_cursor_t *cursor, ucontext_t *uc)
ia64_init (); ia64_init ();
} }
#ifndef HAVE_SYS_UC_ACCESS_H
/* The bsp value stored by getcontext() points to the *end* of the /* The bsp value stored by getcontext() points to the *end* of the
register frame of the initial function. We correct for this by register frame of the initial function. We correct for this by
storing the adjusted value in sc_rbs_base, which isn't used 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; 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, uc->uc_mcontext.sc_rbs_base = ia64_rse_skip_regs (uc->uc_mcontext.sc_ar_bsp,
-sol); -sol);
#endif
c->as = unw_local_addr_space; c->as = unw_local_addr_space;
c->as_arg = uc; c->as_arg = uc;