Lines Matching refs:state
83 /* Unwind state. */
97 unwind_state_t* state, backtrace_frame_t* backtrace,
102 for (size_t index = 0; state->ebp && returned_frames < max_depth; index++) {
104 index ? rewind_pc_arch(memory, state->eip) : state->eip,
107 uint32_t next_esp = state->ebp + 8;
109 frame->stack_top = state->esp;
110 if (state->esp < next_esp) {
111 frame->stack_size = next_esp - state->esp;
114 state->esp = next_esp;
115 if (!try_get_word(memory, state->ebp + 4, &state->eip)
116 || !try_get_word(memory, state->ebp, &state->ebp)
117 || !state->eip) {
130 unwind_state_t state;
131 state.ebp = uc->uc_mcontext.gregs[REG_EBP];
132 state.esp = uc->uc_mcontext.gregs[REG_ESP];
133 state.eip = uc->uc_mcontext.gregs[REG_EIP];
138 &state, backtrace, ignore_depth, max_depth);
148 unwind_state_t state;
149 state.ebp = regs.ebp;
150 state.eip = regs.eip;
151 state.esp = regs.esp;
156 &state, backtrace, ignore_depth, max_depth);