Lines Matching refs:state

191 #define ESP_EH_FRAME_CFA(state)                 ((state)->regs_offset[(state)->offset_idx][ESP_ESH_…  argument
495 dwarf_regs* state) in esp_eh_frame_execute_opcode_0() argument
508 state->location += *operands; in esp_eh_frame_execute_opcode_0()
513 state->location += *((const uint16_t*) operands); in esp_eh_frame_execute_opcode_0()
518 state->location += *((const uint32_t*) operands); in esp_eh_frame_execute_opcode_0()
521 assert(state->offset_idx == 0); in esp_eh_frame_execute_opcode_0()
522 memcpy(state->regs_offset[1], state->regs_offset[0], in esp_eh_frame_execute_opcode_0()
524 state->offset_idx++; in esp_eh_frame_execute_opcode_0()
527 assert(state->offset_idx == 1); in esp_eh_frame_execute_opcode_0()
529 state->offset_idx--; in esp_eh_frame_execute_opcode_0()
548 ESP_EH_FRAME_CFA(state) = ESP_EH_FRAME_NEW_CFA(operand1, operand2); in esp_eh_frame_execute_opcode_0()
557 ESP_EH_FRAME_CFA(state) = ESP_EH_FRAME_SET_CFA_REG(ESP_EH_FRAME_CFA(state), operand1); in esp_eh_frame_execute_opcode_0()
563 ESP_EH_FRAME_CFA(state) = ESP_EH_FRAME_SET_CFA_OFF(ESP_EH_FRAME_CFA(state), operand1); in esp_eh_frame_execute_opcode_0()
590 const ExecutionFrame* frame, dwarf_regs* state) in esp_eh_frame_execute() argument
603 used_operands = esp_eh_frame_execute_opcode_0(param, &instructions[i + 1], state); in esp_eh_frame_execute()
615 state->location += param; in esp_eh_frame_execute()
620state->regs_offset[state->offset_idx][param] = ESP_EH_FRAME_SET_REG_OFFSET(operand1); in esp_eh_frame_execute()
625 state->regs_offset[state->offset_idx][param] = ESP_EH_FRAME_REG_SAME; in esp_eh_frame_execute()
636 if (state->location >= EXECUTION_FRAME_PC(*frame)) in esp_eh_frame_execute()
653 …int32_t esp_eh_frame_initialize_state(const uint8_t* cie, ExecutionFrame* frame, dwarf_regs* state) in esp_eh_frame_initialize_state() argument
711 esp_eh_frame_execute(cie_data, instructions_length, frame, state); in esp_eh_frame_initialize_state()
728 dwarf_regs* state) in esp_eh_frame_restore_caller_state() argument
756 const uint32_t ra_reg = esp_eh_frame_initialize_state(cie, frame, state); in esp_eh_frame_restore_caller_state()
757 state->location = initial_location; in esp_eh_frame_restore_caller_state()
763 bool success = esp_eh_frame_execute(instructions, instructions_length, frame, state); in esp_eh_frame_restore_caller_state()
771 const uint32_t cfa_val = ESP_EH_FRAME_CFA(state); in esp_eh_frame_restore_caller_state()
777 for (uint32_t i = 0; i < DIM(state->regs_offset[0]); i++) { in esp_eh_frame_restore_caller_state()
778 uint32_t value_addr = state->regs_offset[state->offset_idx][i]; in esp_eh_frame_restore_caller_state()
858 static dwarf_regs state = { 0 }; in esp_eh_frame_print_backtrace() local
914 memset(&state, 0, sizeof(dwarf_regs)); in esp_eh_frame_print_backtrace()
920 uint32_t ra = esp_eh_frame_restore_caller_state(fde, &frame, &state); in esp_eh_frame_print_backtrace()