Lines Matching refs:ctx
68 _Unwind_Reason_Code trace_fn(struct _Unwind_Context * ctx, void *opaque) in trace_fn() argument
71 unsigned long ip = _Unwind_GetIP(ctx); in trace_fn()
83 unsigned long eax = _Unwind_GetGR(ctx, 0); in trace_fn()
84 unsigned long ecx = _Unwind_GetGR(ctx, 1); in trace_fn()
85 unsigned long edx = _Unwind_GetGR(ctx, 2); in trace_fn()
86 unsigned long ebx = _Unwind_GetGR(ctx, 3); in trace_fn()
87 unsigned long ebp = _Unwind_GetGR(ctx, 5); in trace_fn()
88 unsigned long esi = _Unwind_GetGR(ctx, 6); in trace_fn()
89 unsigned long edi = _Unwind_GetGR(ctx, 7); in trace_fn()
109 ucontext_t *ctx = (ucontext_t *)ctx_void; in sigtrap() local
111 unsigned long ip = ctx->uc_mcontext.gregs[REG_EIP]; in sigtrap()
117 return_address = *(unsigned long *)(unsigned long)ctx->uc_mcontext.gregs[REG_ESP]; in sigtrap()
127 ctx->uc_mcontext.gregs[REG_EFL] &= ~X86_EFLAGS_TF; in sigtrap()