1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-11-14 04:18:11 +01:00

Drop reference to dwarf.ret_addr_column.

This commit is contained in:
Doug Moore 2017-05-19 19:19:12 -05:00
parent afb2491ccb
commit c66661f73c
14 changed files with 1 additions and 19 deletions

View file

@ -313,7 +313,6 @@ typedef struct dwarf_cursor
unw_word_t cfa; /* canonical frame address; aka frame-/stack-pointer */
unw_word_t ip; /* instruction pointer */
unw_word_t args_size; /* size of arguments */
unw_word_t ret_addr_column; /* column for return-address */
unw_word_t eh_args[UNW_TDEP_NUM_EH_REGS];
unsigned int eh_valid_mask;

View file

@ -115,7 +115,6 @@ common_init (struct cursor *c, unsigned use_prev_instr)
c->sigcontext_pc = 0;
c->dwarf.args_size = 0;
c->dwarf.ret_addr_column = 0;
c->dwarf.stash_frames = 0;
c->dwarf.use_prev_instr = use_prev_instr;
c->dwarf.pi_valid = 0;

View file

@ -66,7 +66,6 @@ common_init (struct cursor *c, unsigned use_prev_instr)
/* FIXME: Initialisation for other registers. */
c->dwarf.args_size = 0;
c->dwarf.ret_addr_column = 0;
c->dwarf.stash_frames = 0;
c->dwarf.use_prev_instr = use_prev_instr;
c->dwarf.pi_valid = 0;

View file

@ -943,11 +943,7 @@ dwarf_step (struct dwarf_cursor *c)
dwarf_state_record_t sr;
if ((ret = find_reg_state (c, &sr)) < 0)
return ret;
if ((ret = apply_reg_state (c, &sr.rs_current)) < 0)
return ret;
c->ret_addr_column = sr.rs_current.ret_addr_column;
return ret;
return apply_reg_state (c, &sr.rs_current);
}
HIDDEN int

View file

@ -60,7 +60,6 @@ unw_step (unw_cursor_t *cursor)
c->sigcontext_format = HPPA_SCF_LINUX_RT_SIGFRAME;
c->sigcontext_addr = sc_addr;
c->dwarf.ret_addr_column = UNW_HPPA_RP;
if ((ret = dwarf_get (&c->dwarf, iaoq_loc, &ip)) < 0)
{

View file

@ -48,7 +48,6 @@ common_init (struct cursor *c, unsigned use_prev_instr)
/* FIXME: Initialisation for other registers. */
c->dwarf.args_size = 0;
c->dwarf.ret_addr_column = 0;
c->dwarf.stash_frames = 0;
c->dwarf.use_prev_instr = use_prev_instr;
c->dwarf.pi_valid = 0;

View file

@ -61,7 +61,6 @@ common_init_ppc32 (struct cursor *c, unsigned use_prev_instr)
c->sigcontext_addr = 0;
c->dwarf.args_size = 0;
c->dwarf.ret_addr_column = 0;
c->dwarf.stash_frames = 0;
c->dwarf.use_prev_instr = use_prev_instr;
c->dwarf.pi_valid = 0;

View file

@ -71,7 +71,6 @@ common_init_ppc64 (struct cursor *c, unsigned use_prev_instr)
c->sigcontext_addr = 0;
c->dwarf.args_size = 0;
c->dwarf.ret_addr_column = 0;
c->dwarf.stash_frames = 0;
c->dwarf.use_prev_instr = use_prev_instr;
c->dwarf.pi_valid = 0;

View file

@ -62,7 +62,6 @@ common_init (struct cursor *c, unsigned use_prev_instr)
c->sigcontext_pc = 0;
c->dwarf.args_size = 0;
c->dwarf.ret_addr_column = 0;
c->dwarf.stash_frames = 0;
c->dwarf.use_prev_instr = use_prev_instr;
c->dwarf.pi_valid = 0;

View file

@ -52,7 +52,6 @@ common_init (struct cursor *c, unsigned use_prev_instr)
return ret;
c->dwarf.args_size = 0;
c->dwarf.ret_addr_column = 0;
c->dwarf.stash_frames = 0;
c->dwarf.use_prev_instr = use_prev_instr;
c->dwarf.pi_valid = 0;

View file

@ -90,7 +90,6 @@ unw_step (unw_cursor_t *cursor)
c->dwarf.loc[EIP] = eip_loc;
c->dwarf.use_prev_instr = 1;
}
c->dwarf.ret_addr_column = EIP;
if (!DWARF_IS_NULL_LOC (c->dwarf.loc[EBP]))
{

View file

@ -58,7 +58,6 @@ common_init (struct cursor *c, unsigned use_prev_instr)
c->sigcontext_addr = 0;
c->dwarf.args_size = 0;
c->dwarf.ret_addr_column = 0;
c->dwarf.stash_frames = 0;
c->dwarf.use_prev_instr = use_prev_instr;
c->dwarf.pi_valid = 0;

View file

@ -197,8 +197,6 @@ unw_step (unw_cursor_t *cursor)
c->dwarf.use_prev_instr = 1;
}
c->dwarf.ret_addr_column = RIP;
if (DWARF_IS_NULL_LOC (c->dwarf.loc[RBP]))
{
ret = 0;

View file

@ -77,7 +77,6 @@ common_init (struct cursor *c, unsigned use_prev_instr)
c->sigcontext_addr = 0;
c->dwarf.args_size = 0;
c->dwarf.ret_addr_column = RIP;
c->dwarf.stash_frames = 0;
c->dwarf.use_prev_instr = use_prev_instr;
c->dwarf.pi_valid = 0;