mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2025-02-17 02:31:41 +01:00
(unw_init_local): On HP-UX, step over the initial (getcontext()) frame.
(Logical change 1.87)
This commit is contained in:
parent
344768e1d6
commit
0561cd32b3
1 changed files with 14 additions and 1 deletions
|
@ -52,7 +52,20 @@ unw_init_local (unw_cursor_t *cursor, ucontext_t *uc)
|
|||
ia64_init ();
|
||||
}
|
||||
|
||||
#ifndef HAVE_SYS_UC_ACCESS_H
|
||||
#ifdef __hpux
|
||||
{
|
||||
int ret;
|
||||
|
||||
c->as = unw_local_addr_space;
|
||||
c->as_arg = uc;
|
||||
if ((ret = common_init (c)) < 0)
|
||||
return ret;
|
||||
|
||||
/* On HP-UX, the context created by getcontext() points to the
|
||||
getcontext() system call stub. Step over it: */
|
||||
return unw_step (cursor);
|
||||
}
|
||||
#else
|
||||
/* 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
|
||||
|
|
Loading…
Add table
Reference in a new issue