1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-09-29 18:09:29 +02: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 ();
}
#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;