Lines Matching refs:context
174 _Unwind_GetGR (struct _Unwind_Context *context, int index) in _Unwind_GetGR() argument
177 return * (_Unwind_Word *) context->reg[index]; in _Unwind_GetGR()
183 _Unwind_SetGR (struct _Unwind_Context *context, int index, _Unwind_Word val) in _Unwind_SetGR() argument
185 * (_Unwind_Word *) context->reg[index] = val; in _Unwind_SetGR()
191 _Unwind_GetIP (struct _Unwind_Context *context) in _Unwind_GetIP() argument
193 return (_Unwind_Ptr) context->ra; in _Unwind_GetIP()
199 _Unwind_SetIP (struct _Unwind_Context *context, _Unwind_Ptr val) in _Unwind_SetIP() argument
201 context->ra = (void *) val; in _Unwind_SetIP()
205 _Unwind_GetLanguageSpecificData (struct _Unwind_Context *context) in _Unwind_GetLanguageSpecificData() argument
207 return context->lsda; in _Unwind_GetLanguageSpecificData()
211 _Unwind_GetRegionStart (struct _Unwind_Context *context) in _Unwind_GetRegionStart() argument
213 return (_Unwind_Ptr) context->bases.func; in _Unwind_GetRegionStart()
229 _Unwind_GetDataRelBase (struct _Unwind_Context *context) in _Unwind_GetDataRelBase() argument
231 return (_Unwind_Ptr) context->bases.dbase; in _Unwind_GetDataRelBase()
235 _Unwind_GetTextRelBase (struct _Unwind_Context *context) in _Unwind_GetTextRelBase() argument
237 return (_Unwind_Ptr) context->bases.tbase; in _Unwind_GetTextRelBase()
246 extract_cie_info (struct dwarf_cie *cie, struct _Unwind_Context *context, in extract_cie_info() argument
303 p = read_encoded_value (context, *p, p + 1, &personality); in extract_cie_info()
323 struct _Unwind_Context *context, _Unwind_Word initial) in execute_stack_op() argument
451 result = _Unwind_GetGR (context, op - DW_OP_reg0); in execute_stack_op()
455 result = _Unwind_GetGR (context, reg); in execute_stack_op()
491 result = _Unwind_GetGR (context, op - DW_OP_breg0) + offset; in execute_stack_op()
496 result = _Unwind_GetGR (context, reg) + offset; in execute_stack_op()
726 struct _Unwind_Context *context, in execute_cfa_program() argument
741 while (insn_ptr < insn_end && fs->pc < context->ra) in execute_cfa_program()
767 insn_ptr = read_encoded_value (context, fs->fde_encoding, in execute_cfa_program()
916 insn_ptr = read_uleb128 (insn_ptr, &context->args_size); in execute_cfa_program()
941 uw_frame_state_for (struct _Unwind_Context *context, _Unwind_FrameState *fs) in uw_frame_state_for() argument
948 context->args_size = 0; in uw_frame_state_for()
949 context->lsda = 0; in uw_frame_state_for()
951 fde = _Unwind_Find_FDE (context->ra - 1, &context->bases); in uw_frame_state_for()
958 MD_FALLBACK_FRAME_STATE_FOR (context, fs, success); in uw_frame_state_for()
967 fs->pc = context->bases.func; in uw_frame_state_for()
970 insn = extract_cie_info (cie, context, fs); in uw_frame_state_for()
977 execute_cfa_program (insn, end, context, fs); in uw_frame_state_for()
992 aug = read_encoded_value (context, fs->lsda_encoding, aug, &lsda); in uw_frame_state_for()
993 context->lsda = (void *) lsda; in uw_frame_state_for()
1000 execute_cfa_program (insn, end, context, fs); in uw_frame_state_for()
1032 struct _Unwind_Context context; in __frame_state_for() local
1036 memset (&context, 0, sizeof (struct _Unwind_Context)); in __frame_state_for()
1037 context.ra = pc_target + 1; in __frame_state_for()
1039 if (uw_frame_state_for (&context, &fs) != _URC_NO_REASON) in __frame_state_for()
1067 state_in->args_size = context.args_size; in __frame_state_for()
1076 uw_update_context_1 (struct _Unwind_Context *context, _Unwind_FrameState *fs) in uw_update_context_1() argument
1078 struct _Unwind_Context orig_context = *context; in uw_update_context_1()
1102 tmp_sp = (_Unwind_Ptr) context->cfa; in uw_update_context_1()
1105 context->reg[__builtin_dwarf_sp_column ()] = NULL; in uw_update_context_1()
1130 context->cfa = cfa; in uw_update_context_1()
1140 context->reg[i] = cfa + fs->regs.reg[i].loc.offset; in uw_update_context_1()
1144 context->reg[i] = orig_context.reg[fs->regs.reg[i].loc.reg]; in uw_update_context_1()
1156 context->reg[i] = (void *) val; in uw_update_context_1()
1168 uw_update_context (struct _Unwind_Context *context, _Unwind_FrameState *fs) in uw_update_context() argument
1170 uw_update_context_1 (context, fs); in uw_update_context()
1174 context->ra = __builtin_extract_return_addr in uw_update_context()
1175 ((void *) (_Unwind_Ptr) _Unwind_GetGR (context, fs->retaddr_column)); in uw_update_context()
1193 uw_init_context_1 (struct _Unwind_Context *context, in uw_init_context_1() argument
1200 memset (context, 0, sizeof (struct _Unwind_Context)); in uw_init_context_1()
1201 context->ra = ra; in uw_init_context_1()
1203 if (uw_frame_state_for (context, &fs) != _URC_NO_REASON) in uw_init_context_1()
1208 context->reg[__builtin_dwarf_sp_column ()] = &sp_slot; in uw_init_context_1()
1213 uw_update_context_1 (context, &fs); in uw_init_context_1()
1218 context->ra = __builtin_extract_return_addr (outer_ra); in uw_init_context_1()
1290 uw_identify_context (struct _Unwind_Context *context) in uw_identify_context() argument
1292 return _Unwind_GetIP (context); in uw_identify_context()