Lines Matching refs:dwarf
42 old_ip = c->dwarf.ip; in arm_exidx_step()
43 old_cfa = c->dwarf.cfa; in arm_exidx_step()
46 c->dwarf.loc[UNW_ARM_R15] = DWARF_NULL_LOC; in arm_exidx_step()
48 if ((ret = tdep_find_proc_info (&c->dwarf, c->dwarf.ip, 1)) < 0) in arm_exidx_step()
51 if (c->dwarf.pi.format != UNW_INFO_FORMAT_ARM_EXIDX) in arm_exidx_step()
54 ret = arm_exidx_extract (&c->dwarf, buf); in arm_exidx_step()
60 ret = arm_exidx_decode (buf, ret, &c->dwarf); in arm_exidx_step()
64 if (c->dwarf.ip == old_ip && c->dwarf.cfa == old_cfa) in arm_exidx_step()
67 __FUNCTION__, (long) c->dwarf.ip); in arm_exidx_step()
71 c->dwarf.pi_valid = 0; in arm_exidx_step()
73 return (c->dwarf.ip == 0) ? 0 : 1; in arm_exidx_step()
85 ip = c->dwarf.ip; in adjust_ip()
99 as = c->dwarf.as; in adjust_ip()
101 arg = c->dwarf.as_arg; in adjust_ip()
107 c->dwarf.ip -= adjust; in adjust_ip()
117 unw_word_t sc_addr, sp, sp_addr = c->dwarf.cfa; in unw_handle_signal_frame()
120 if ((ret = dwarf_get (&c->dwarf, sp_loc, &sp)) < 0) in unw_handle_signal_frame()
128 c->sigcontext_sp = c->dwarf.cfa; in unw_handle_signal_frame()
129 c->sigcontext_pc = c->dwarf.ip; in unw_handle_signal_frame()
177 c->dwarf.loc[UNW_ARM_R0] = DWARF_LOC (sc_addr + LINUX_SC_R0_OFF, 0); in unw_handle_signal_frame()
178 c->dwarf.loc[UNW_ARM_R1] = DWARF_LOC (sc_addr + LINUX_SC_R1_OFF, 0); in unw_handle_signal_frame()
179 c->dwarf.loc[UNW_ARM_R2] = DWARF_LOC (sc_addr + LINUX_SC_R2_OFF, 0); in unw_handle_signal_frame()
180 c->dwarf.loc[UNW_ARM_R3] = DWARF_LOC (sc_addr + LINUX_SC_R3_OFF, 0); in unw_handle_signal_frame()
181 c->dwarf.loc[UNW_ARM_R4] = DWARF_LOC (sc_addr + LINUX_SC_R4_OFF, 0); in unw_handle_signal_frame()
182 c->dwarf.loc[UNW_ARM_R5] = DWARF_LOC (sc_addr + LINUX_SC_R5_OFF, 0); in unw_handle_signal_frame()
183 c->dwarf.loc[UNW_ARM_R6] = DWARF_LOC (sc_addr + LINUX_SC_R6_OFF, 0); in unw_handle_signal_frame()
184 c->dwarf.loc[UNW_ARM_R7] = DWARF_LOC (sc_addr + LINUX_SC_R7_OFF, 0); in unw_handle_signal_frame()
185 c->dwarf.loc[UNW_ARM_R8] = DWARF_LOC (sc_addr + LINUX_SC_R8_OFF, 0); in unw_handle_signal_frame()
186 c->dwarf.loc[UNW_ARM_R9] = DWARF_LOC (sc_addr + LINUX_SC_R9_OFF, 0); in unw_handle_signal_frame()
187 c->dwarf.loc[UNW_ARM_R10] = DWARF_LOC (sc_addr + LINUX_SC_R10_OFF, 0); in unw_handle_signal_frame()
188 c->dwarf.loc[UNW_ARM_R11] = DWARF_LOC (sc_addr + LINUX_SC_FP_OFF, 0); in unw_handle_signal_frame()
189 c->dwarf.loc[UNW_ARM_R12] = DWARF_LOC (sc_addr + LINUX_SC_IP_OFF, 0); in unw_handle_signal_frame()
190 c->dwarf.loc[UNW_ARM_R13] = DWARF_LOC (sc_addr + LINUX_SC_SP_OFF, 0); in unw_handle_signal_frame()
191 c->dwarf.loc[UNW_ARM_R14] = DWARF_LOC (sc_addr + LINUX_SC_LR_OFF, 0); in unw_handle_signal_frame()
192 c->dwarf.loc[UNW_ARM_R15] = DWARF_LOC (sc_addr + LINUX_SC_PC_OFF, 0); in unw_handle_signal_frame()
195 dwarf_get (&c->dwarf, c->dwarf.loc[UNW_ARM_R13], &c->dwarf.cfa); in unw_handle_signal_frame()
196 dwarf_get (&c->dwarf, c->dwarf.loc[UNW_ARM_R15], &c->dwarf.ip); in unw_handle_signal_frame()
198 c->dwarf.pi_valid = 0; in unw_handle_signal_frame()
221 ret = dwarf_step (&c->dwarf); in unw_step()
256 if (dwarf_get(&c->dwarf, c->dwarf.loc[UNW_ARM_R11], &frame) < 0) in unw_step()
261 c->dwarf.loc[i] = DWARF_NULL_LOC; in unw_step()
265 if (dwarf_get(&c->dwarf, DWARF_LOC(frame, 0), &instr) < 0) in unw_step()
270 if (dwarf_get(&c->dwarf, DWARF_LOC(instr, 0), &instr) < 0) in unw_step()
286 if (dwarf_get(&c->dwarf, ip_loc, &c->dwarf.ip) < 0) in unw_step()
290 c->dwarf.loc[UNW_ARM_R12] = ip_loc; in unw_step()
291 c->dwarf.loc[UNW_ARM_R11] = fp_loc; in unw_step()
292 c->dwarf.pi_valid = 0; in unw_step()
293 Debug(15, "ip=%x\n", c->dwarf.ip); in unw_step()
303 if (ret < 0 && UNW_TRY_METHOD(UNW_ARM_METHOD_LR) && c->dwarf.frame == 0) in unw_step()
310 if (dwarf_get(&c->dwarf, c->dwarf.loc[UNW_ARM_R14], &lr) >= 0) in unw_step()
312 if (lr != c->dwarf.ip) in unw_step()
315 c->dwarf.ip = lr; in unw_step()
323 c->dwarf.frame++; in unw_step()