Lines Matching full:dwarf
32 unw_word_t sc_addr, sp, sp_addr = c->dwarf.cfa; in unw_handle_signal_frame()
38 // c->sigcontext_sp = c->dwarf.cfa; in unw_handle_signal_frame()
39 // c->sigcontext_pc = c->dwarf.ip; in unw_handle_signal_frame()
53 if (tdep_big_endian(c->dwarf.as)) in unw_handle_signal_frame()
58 /* Update the dwarf cursor. */ in unw_handle_signal_frame()
59 c->dwarf.loc[UNW_MIPS_R0] = DWARF_LOC (sc_addr + LINUX_SC_R0_OFF, 0); in unw_handle_signal_frame()
60 c->dwarf.loc[UNW_MIPS_R1] = DWARF_LOC (sc_addr + LINUX_SC_R1_OFF, 0); in unw_handle_signal_frame()
61 c->dwarf.loc[UNW_MIPS_R2] = DWARF_LOC (sc_addr + LINUX_SC_R2_OFF, 0); in unw_handle_signal_frame()
62 c->dwarf.loc[UNW_MIPS_R3] = DWARF_LOC (sc_addr + LINUX_SC_R3_OFF, 0); in unw_handle_signal_frame()
63 c->dwarf.loc[UNW_MIPS_R4] = DWARF_LOC (sc_addr + LINUX_SC_R4_OFF, 0); in unw_handle_signal_frame()
64 c->dwarf.loc[UNW_MIPS_R5] = DWARF_LOC (sc_addr + LINUX_SC_R5_OFF, 0); in unw_handle_signal_frame()
65 c->dwarf.loc[UNW_MIPS_R6] = DWARF_LOC (sc_addr + LINUX_SC_R6_OFF, 0); in unw_handle_signal_frame()
66 c->dwarf.loc[UNW_MIPS_R7] = DWARF_LOC (sc_addr + LINUX_SC_R7_OFF, 0); in unw_handle_signal_frame()
67 c->dwarf.loc[UNW_MIPS_R8] = DWARF_LOC (sc_addr + LINUX_SC_R8_OFF, 0); in unw_handle_signal_frame()
68 c->dwarf.loc[UNW_MIPS_R9] = DWARF_LOC (sc_addr + LINUX_SC_R9_OFF, 0); in unw_handle_signal_frame()
69 c->dwarf.loc[UNW_MIPS_R10] = DWARF_LOC (sc_addr + LINUX_SC_R10_OFF, 0); in unw_handle_signal_frame()
70 c->dwarf.loc[UNW_MIPS_R11] = DWARF_LOC (sc_addr + LINUX_SC_R11_OFF, 0); in unw_handle_signal_frame()
71 c->dwarf.loc[UNW_MIPS_R12] = DWARF_LOC (sc_addr + LINUX_SC_R12_OFF, 0); in unw_handle_signal_frame()
72 c->dwarf.loc[UNW_MIPS_R13] = DWARF_LOC (sc_addr + LINUX_SC_R13_OFF, 0); in unw_handle_signal_frame()
73 c->dwarf.loc[UNW_MIPS_R14] = DWARF_LOC (sc_addr + LINUX_SC_R14_OFF, 0); in unw_handle_signal_frame()
74 c->dwarf.loc[UNW_MIPS_R15] = DWARF_LOC (sc_addr + LINUX_SC_R15_OFF, 0); in unw_handle_signal_frame()
75 c->dwarf.loc[UNW_MIPS_R16] = DWARF_LOC (sc_addr + LINUX_SC_R16_OFF, 0); in unw_handle_signal_frame()
76 c->dwarf.loc[UNW_MIPS_R17] = DWARF_LOC (sc_addr + LINUX_SC_R17_OFF, 0); in unw_handle_signal_frame()
77 c->dwarf.loc[UNW_MIPS_R18] = DWARF_LOC (sc_addr + LINUX_SC_R18_OFF, 0); in unw_handle_signal_frame()
78 c->dwarf.loc[UNW_MIPS_R19] = DWARF_LOC (sc_addr + LINUX_SC_R19_OFF, 0); in unw_handle_signal_frame()
79 c->dwarf.loc[UNW_MIPS_R20] = DWARF_LOC (sc_addr + LINUX_SC_R20_OFF, 0); in unw_handle_signal_frame()
80 c->dwarf.loc[UNW_MIPS_R21] = DWARF_LOC (sc_addr + LINUX_SC_R21_OFF, 0); in unw_handle_signal_frame()
81 c->dwarf.loc[UNW_MIPS_R22] = DWARF_LOC (sc_addr + LINUX_SC_R22_OFF, 0); in unw_handle_signal_frame()
82 c->dwarf.loc[UNW_MIPS_R23] = DWARF_LOC (sc_addr + LINUX_SC_R23_OFF, 0); in unw_handle_signal_frame()
83 c->dwarf.loc[UNW_MIPS_R24] = DWARF_LOC (sc_addr + LINUX_SC_R24_OFF, 0); in unw_handle_signal_frame()
84 c->dwarf.loc[UNW_MIPS_R25] = DWARF_LOC (sc_addr + LINUX_SC_R25_OFF, 0); in unw_handle_signal_frame()
85 c->dwarf.loc[UNW_MIPS_R26] = DWARF_LOC (sc_addr + LINUX_SC_R26_OFF, 0); in unw_handle_signal_frame()
86 c->dwarf.loc[UNW_MIPS_R27] = DWARF_LOC (sc_addr + LINUX_SC_R27_OFF, 0); in unw_handle_signal_frame()
87 c->dwarf.loc[UNW_MIPS_R28] = DWARF_LOC (sc_addr + LINUX_SC_R28_OFF, 0); in unw_handle_signal_frame()
88 c->dwarf.loc[UNW_MIPS_R29] = DWARF_LOC (sc_addr + LINUX_SC_R29_OFF, 0); in unw_handle_signal_frame()
89 c->dwarf.loc[UNW_MIPS_R30] = DWARF_LOC (sc_addr + LINUX_SC_R30_OFF, 0); in unw_handle_signal_frame()
90 c->dwarf.loc[UNW_MIPS_R31] = DWARF_LOC (sc_addr + LINUX_SC_R31_OFF, 0); in unw_handle_signal_frame()
91 c->dwarf.loc[UNW_MIPS_PC] = DWARF_LOC (sc_addr + LINUX_SC_PC_OFF, 0); in unw_handle_signal_frame()
94 dwarf_get (&c->dwarf, c->dwarf.loc[UNW_MIPS_R29], &c->dwarf.cfa); in unw_handle_signal_frame()
95 //dwarf_get (&c->dwarf, c->dwarf.loc[UNW_MIPS_R31], &c->dwarf.ip); in unw_handle_signal_frame()
97 if ((ret = dwarf_get(&c->dwarf, DWARF_LOC(sc_addr + LINUX_SC_PC_OFF, 0), in unw_handle_signal_frame()
98 &c->dwarf.ip)) < 0) in unw_handle_signal_frame()
101 if ((ret = dwarf_get(&c->dwarf, DWARF_LOC(sc_addr + LINUX_SC_R31_OFF, 0), in unw_handle_signal_frame()
104 if ((ret = dwarf_get(&c->dwarf, DWARF_LOC(sc_addr + LINUX_SC_R30_OFF, 0), in unw_handle_signal_frame()
109 (unsigned long long)c->dwarf.ip, (unsigned long long)ra, in unw_handle_signal_frame()
110 (unsigned long long)c->dwarf.cfa, (unsigned long long)fp); in unw_handle_signal_frame()
112 c->dwarf.pi_valid = 0; in unw_handle_signal_frame()
113 c->dwarf.use_prev_instr = 0; in unw_handle_signal_frame()
124 unw_word_t old_ip = c->dwarf.ip; in unw_step()
125 unw_word_t old_cfa = c->dwarf.cfa; in unw_step()
129 /* Not a signal frame, try DWARF-based unwinding. */ in unw_step()
130 ret = dwarf_step (&c->dwarf); in unw_step()
135 /* Dwarf unwinding didn't work, stop. */ in unw_step()
141 if (c->dwarf.ip == old_ip && c->dwarf.cfa == old_cfa) in unw_step()
144 __FUNCTION__, (long) c->dwarf.ip); in unw_step()
148 return (c->dwarf.ip == 0) ? 0 : 1; in unw_step()