Lines Matching refs:cursor
47 #define __unw_phase2_resume(cursor, fn) \ argument
50 __unw_resume((cursor)); \
54 #define __unw_phase2_resume(cursor, fn) \ argument
57 void *cetRegContext = __libunwind_cet_get_registers((cursor)); \
66 #define __unw_phase2_resume(cursor, fn) \ argument
69 void *cetRegContext = __libunwind_cet_get_registers((cursor)); \
77 unwind_phase1(unw_context_t *uc, unw_cursor_t *cursor, _Unwind_Exception *exception_object) { in unwind_phase1() argument
78 __unw_init_local(cursor, uc); in unwind_phase1()
84 int stepResult = __unw_step(cursor); in unwind_phase1()
102 if (__unw_get_proc_info(cursor, &frameInfo) != UNW_ESUCCESS) { in unwind_phase1()
116 if ((__unw_get_proc_name(cursor, functionBuf, sizeof(functionBuf), in unwind_phase1()
121 __unw_get_reg(cursor, UNW_REG_IP, &pc); in unwind_phase1()
140 exception_object, (struct _Unwind_Context *)(cursor)); in unwind_phase1()
145 __unw_get_reg(cursor, UNW_REG_SP, &sp); in unwind_phase1()
173 unwind_phase2(unw_context_t *uc, unw_cursor_t *cursor, _Unwind_Exception *exception_object) { in unwind_phase2() argument
174 __unw_init_local(cursor, uc); in unwind_phase2()
190 int stepResult = __unw_step_stage2(cursor); in unwind_phase2()
208 __unw_get_reg(cursor, UNW_REG_SP, &sp); in unwind_phase2()
209 if (__unw_get_proc_info(cursor, &frameInfo) != UNW_ESUCCESS) { in unwind_phase2()
223 if ((__unw_get_proc_name(cursor, functionBuf, sizeof(functionBuf), in unwind_phase2()
243 __unw_get_reg(cursor, UNW_REG_IP, &retInNormalStack); in unwind_phase2()
262 (struct _Unwind_Context *)(cursor)); in unwind_phase2()
283 __unw_get_reg(cursor, UNW_REG_IP, &pc); in unwind_phase2()
284 __unw_get_reg(cursor, UNW_REG_SP, &sp); in unwind_phase2()
291 __unw_phase2_resume(cursor, framesWalked); in unwind_phase2()
309 unwind_phase2_forced(unw_context_t *uc, unw_cursor_t *cursor, in unwind_phase2_forced() argument
312 __unw_init_local(cursor, uc); in unwind_phase2_forced()
318 while (__unw_step_stage2(cursor) > 0) { in unwind_phase2_forced()
322 if (__unw_get_proc_info(cursor, &frameInfo) != UNW_ESUCCESS) { in unwind_phase2_forced()
336 if ((__unw_get_proc_name(cursor, functionBuf, sizeof(functionBuf), in unwind_phase2_forced()
353 (struct _Unwind_Context *)(cursor), stop_parameter); in unwind_phase2_forced()
374 (struct _Unwind_Context *)(cursor)); in unwind_phase2_forced()
389 __unw_phase2_resume(cursor, framesWalked); in unwind_phase2_forced()
410 (struct _Unwind_Context *)(cursor), stop_parameter); in unwind_phase2_forced()
424 unw_cursor_t cursor; in _Unwind_RaiseException() local
433 _Unwind_Reason_Code phase1 = unwind_phase1(&uc, &cursor, exception_object); in _Unwind_RaiseException()
438 return unwind_phase2(&uc, &cursor, exception_object); in _Unwind_RaiseException()
458 unw_cursor_t cursor; in _Unwind_Resume() local
462 unwind_phase2_forced(&uc, &cursor, exception_object, in _Unwind_Resume()
466 unwind_phase2(&uc, &cursor, exception_object); in _Unwind_Resume()
483 unw_cursor_t cursor; in _Unwind_ForcedUnwind() local
492 return unwind_phase2_forced(&uc, &cursor, exception_object, stop, stop_parameter); in _Unwind_ForcedUnwind()
499 unw_cursor_t *cursor = (unw_cursor_t *)context; in _Unwind_GetLanguageSpecificData() local
502 if (__unw_get_proc_info(cursor, &frameInfo) == UNW_ESUCCESS) in _Unwind_GetLanguageSpecificData()
522 unw_cursor_t *cursor = (unw_cursor_t *)context; in _Unwind_GetRegionStart() local
525 if (__unw_get_proc_info(cursor, &frameInfo) == UNW_ESUCCESS) in _Unwind_GetRegionStart()
548 unw_cursor_t *cursor = (unw_cursor_t *)context; in _Unwind_GetGR() local
550 __unw_get_reg(cursor, index, &result); in _Unwind_GetGR()
562 unw_cursor_t *cursor = (unw_cursor_t *)context; in _Unwind_SetGR() local
563 __unw_set_reg(cursor, index, value); in _Unwind_SetGR()
568 unw_cursor_t *cursor = (unw_cursor_t *)context; in _Unwind_GetIP() local
570 __unw_get_reg(cursor, UNW_REG_IP, &result); in _Unwind_GetIP()
583 unw_cursor_t *cursor = (unw_cursor_t *)context; in _Unwind_SetIP() local
584 __unw_set_reg(cursor, UNW_REG_IP, value); in _Unwind_SetIP()