1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-07-02 13:41:46 +02:00

Restore a dwarf-free "apply_reg_state" function.

This commit is contained in:
Doug Moore 2017-05-08 22:44:23 -05:00
parent 3888b2bbcb
commit 4184bb478a

View file

@ -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);
}