mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-14 04:18:11 +01:00
Restore a dwarf-free "apply_reg_state" function.
This commit is contained in:
parent
3888b2bbcb
commit
4184bb478a
1 changed files with 9 additions and 3 deletions
|
@ -759,8 +759,8 @@ eval_location_expr (struct dwarf_cursor *c, unw_addr_space_t as,
|
|||
return 0;
|
||||
}
|
||||
|
||||
HIDDEN int
|
||||
dwarf_apply_reg_state (struct dwarf_cursor *c, struct dwarf_reg_state *rs)
|
||||
static int
|
||||
apply_reg_state (struct dwarf_cursor *c, struct dwarf_reg_state *rs)
|
||||
{
|
||||
unw_word_t regnum, addr, cfa, ip;
|
||||
unw_word_t prev_ip, prev_cfa;
|
||||
|
@ -933,7 +933,7 @@ dwarf_step (struct dwarf_cursor *c)
|
|||
dwarf_state_record_t sr;
|
||||
if ((ret = find_reg_state (c, &sr)) < 0)
|
||||
return ret;
|
||||
if ((ret = dwarf_apply_reg_state (c, &sr.rs_current)) < 0)
|
||||
if ((ret = apply_reg_state (c, &sr.rs_current)) < 0)
|
||||
return ret;
|
||||
|
||||
return 1;
|
||||
|
@ -1025,3 +1025,9 @@ dwarf_reg_states_iterate(struct dwarf_cursor *c,
|
|||
put_unwind_info (c, &c->pi);
|
||||
return ret;
|
||||
}
|
||||
|
||||
HIDDEN int
|
||||
dwarf_apply_reg_state (struct dwarf_cursor *c, struct dwarf_reg_state *rs)
|
||||
{
|
||||
return apply_reg_state(c, rs);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue