Home
last modified time | relevance | path

Searched refs:uc_mcontext (Results 1 – 25 of 69) sorted by relevance

123

/third_party/libunwind/src/ppc32/
Ducontext_i.h49 #define UC_MCONTEXT_GREGS_R0 ((void *)&dmy_ctxt.uc_mcontext.uc_regs->gregs[0] - (void *)&dmy_ctxt)
50 #define UC_MCONTEXT_GREGS_R1 ((void *)&dmy_ctxt.uc_mcontext.uc_regs->gregs[1] - (void *)&dmy_ctxt)
51 #define UC_MCONTEXT_GREGS_R2 ((void *)&dmy_ctxt.uc_mcontext.uc_regs->gregs[2] - (void *)&dmy_ctxt)
52 #define UC_MCONTEXT_GREGS_R3 ((void *)&dmy_ctxt.uc_mcontext.uc_regs->gregs[3] - (void *)&dmy_ctxt)
53 #define UC_MCONTEXT_GREGS_R4 ((void *)&dmy_ctxt.uc_mcontext.uc_regs->gregs[4] - (void *)&dmy_ctxt)
54 #define UC_MCONTEXT_GREGS_R5 ((void *)&dmy_ctxt.uc_mcontext.uc_regs->gregs[5] - (void *)&dmy_ctxt)
55 #define UC_MCONTEXT_GREGS_R6 ((void *)&dmy_ctxt.uc_mcontext.uc_regs->gregs[6] - (void *)&dmy_ctxt)
56 #define UC_MCONTEXT_GREGS_R7 ((void *)&dmy_ctxt.uc_mcontext.uc_regs->gregs[7] - (void *)&dmy_ctxt)
57 #define UC_MCONTEXT_GREGS_R8 ((void *)&dmy_ctxt.uc_mcontext.uc_regs->gregs[8] - (void *)&dmy_ctxt)
58 #define UC_MCONTEXT_GREGS_R9 ((void *)&dmy_ctxt.uc_mcontext.uc_regs->gregs[9] - (void *)&dmy_ctxt)
[all …]
DGinit.c51 addr = &uc->uc_mcontext.uc_regs->gregs[reg - UNW_PPC32_R0]; in uc_addr()
56 addr = &uc->uc_mcontext.uc_regs->fpregs.fpregs[reg - UNW_PPC32_F0]; in uc_addr()
79 addr = &uc->uc_mcontext.uc_regs->gregs[gregs_idx]; in uc_addr()
/third_party/libunwind/src/aarch64/
DGresume.c44 regs[0] = uc->uc_mcontext.regs[0]; in aarch64_local_resume()
45 regs[1] = uc->uc_mcontext.regs[1]; in aarch64_local_resume()
46 regs[2] = uc->uc_mcontext.regs[2]; in aarch64_local_resume()
47 regs[3] = uc->uc_mcontext.regs[3]; in aarch64_local_resume()
48 regs[4] = uc->uc_mcontext.regs[19]; in aarch64_local_resume()
49 regs[5] = uc->uc_mcontext.regs[20]; in aarch64_local_resume()
50 regs[6] = uc->uc_mcontext.regs[21]; in aarch64_local_resume()
51 regs[7] = uc->uc_mcontext.regs[22]; in aarch64_local_resume()
52 regs[8] = uc->uc_mcontext.regs[23]; in aarch64_local_resume()
53 regs[9] = uc->uc_mcontext.regs[24]; in aarch64_local_resume()
[all …]
/third_party/libunwind/src/x86_64/
DGos-freebsd.c168 case UNW_X86_64_R8: addr = &uc->uc_mcontext.mc_r8; break; in x86_64_r_uc_addr()
169 case UNW_X86_64_R9: addr = &uc->uc_mcontext.mc_r9; break; in x86_64_r_uc_addr()
170 case UNW_X86_64_R10: addr = &uc->uc_mcontext.mc_r10; break; in x86_64_r_uc_addr()
171 case UNW_X86_64_R11: addr = &uc->uc_mcontext.mc_r11; break; in x86_64_r_uc_addr()
172 case UNW_X86_64_R12: addr = &uc->uc_mcontext.mc_r12; break; in x86_64_r_uc_addr()
173 case UNW_X86_64_R13: addr = &uc->uc_mcontext.mc_r13; break; in x86_64_r_uc_addr()
174 case UNW_X86_64_R14: addr = &uc->uc_mcontext.mc_r14; break; in x86_64_r_uc_addr()
175 case UNW_X86_64_R15: addr = &uc->uc_mcontext.mc_r15; break; in x86_64_r_uc_addr()
176 case UNW_X86_64_RDI: addr = &uc->uc_mcontext.mc_rdi; break; in x86_64_r_uc_addr()
177 case UNW_X86_64_RSI: addr = &uc->uc_mcontext.mc_rsi; break; in x86_64_r_uc_addr()
[all …]
DGos-linux.c112 case UNW_X86_64_R8: addr = &uc->uc_mcontext.gregs[REG_R8]; break; in x86_64_r_uc_addr()
113 case UNW_X86_64_R9: addr = &uc->uc_mcontext.gregs[REG_R9]; break; in x86_64_r_uc_addr()
114 case UNW_X86_64_R10: addr = &uc->uc_mcontext.gregs[REG_R10]; break; in x86_64_r_uc_addr()
115 case UNW_X86_64_R11: addr = &uc->uc_mcontext.gregs[REG_R11]; break; in x86_64_r_uc_addr()
116 case UNW_X86_64_R12: addr = &uc->uc_mcontext.gregs[REG_R12]; break; in x86_64_r_uc_addr()
117 case UNW_X86_64_R13: addr = &uc->uc_mcontext.gregs[REG_R13]; break; in x86_64_r_uc_addr()
118 case UNW_X86_64_R14: addr = &uc->uc_mcontext.gregs[REG_R14]; break; in x86_64_r_uc_addr()
119 case UNW_X86_64_R15: addr = &uc->uc_mcontext.gregs[REG_R15]; break; in x86_64_r_uc_addr()
120 case UNW_X86_64_RDI: addr = &uc->uc_mcontext.gregs[REG_RDI]; break; in x86_64_r_uc_addr()
121 case UNW_X86_64_RSI: addr = &uc->uc_mcontext.gregs[REG_RSI]; break; in x86_64_r_uc_addr()
[all …]
DGos-solaris.c107 case UNW_X86_64_R8: addr = &uc->uc_mcontext.gregs[REG_R8]; break; in x86_64_r_uc_addr()
108 case UNW_X86_64_R9: addr = &uc->uc_mcontext.gregs[REG_R9]; break; in x86_64_r_uc_addr()
109 case UNW_X86_64_R10: addr = &uc->uc_mcontext.gregs[REG_R10]; break; in x86_64_r_uc_addr()
110 case UNW_X86_64_R11: addr = &uc->uc_mcontext.gregs[REG_R11]; break; in x86_64_r_uc_addr()
111 case UNW_X86_64_R12: addr = &uc->uc_mcontext.gregs[REG_R12]; break; in x86_64_r_uc_addr()
112 case UNW_X86_64_R13: addr = &uc->uc_mcontext.gregs[REG_R13]; break; in x86_64_r_uc_addr()
113 case UNW_X86_64_R14: addr = &uc->uc_mcontext.gregs[REG_R14]; break; in x86_64_r_uc_addr()
114 case UNW_X86_64_R15: addr = &uc->uc_mcontext.gregs[REG_R15]; break; in x86_64_r_uc_addr()
115 case UNW_X86_64_RDI: addr = &uc->uc_mcontext.gregs[REG_RDI]; break; in x86_64_r_uc_addr()
116 case UNW_X86_64_RSI: addr = &uc->uc_mcontext.gregs[REG_RSI]; break; in x86_64_r_uc_addr()
[all …]
/third_party/libunwind/src/sh/
DGresume.c44 regs[0] = uc->uc_mcontext.gregs[8]; in sh_local_resume()
45 regs[1] = uc->uc_mcontext.gregs[9]; in sh_local_resume()
46 regs[2] = uc->uc_mcontext.gregs[10]; in sh_local_resume()
47 regs[3] = uc->uc_mcontext.gregs[11]; in sh_local_resume()
48 regs[4] = uc->uc_mcontext.gregs[12]; in sh_local_resume()
49 regs[5] = uc->uc_mcontext.gregs[13]; in sh_local_resume()
50 regs[6] = uc->uc_mcontext.gregs[14]; in sh_local_resume()
51 regs[7] = uc->uc_mcontext.gregs[15]; in sh_local_resume()
52 unsigned long pc = uc->uc_mcontext.pr; in sh_local_resume()
81 sc->sc_regs[0] = uc->uc_mcontext.gregs[0]; in sh_local_resume()
[all …]
/third_party/skia/third_party/externals/abseil-cpp/absl/debugging/internal/
Dexamine_stack.cc48 return reinterpret_cast<void*>(context->uc_mcontext.pc); in GetProgramCounter()
50 return reinterpret_cast<void*>(context->uc_mcontext.sc_pc); in GetProgramCounter()
52 return reinterpret_cast<void*>(context->uc_mcontext.arm_pc); in GetProgramCounter()
54 return reinterpret_cast<void*>(context->uc_mcontext.sc_iaoq[0]); in GetProgramCounter()
56 if (14 < ABSL_ARRAYSIZE(context->uc_mcontext.gregs)) in GetProgramCounter()
57 return reinterpret_cast<void*>(context->uc_mcontext.gregs[14]); in GetProgramCounter()
59 return reinterpret_cast<void*>(context->uc_mcontext.sc_ip); in GetProgramCounter()
61 return reinterpret_cast<void*>(context->uc_mcontext.gregs[16]); in GetProgramCounter()
63 return reinterpret_cast<void*>(context->uc_mcontext.pc); in GetProgramCounter()
65 return reinterpret_cast<void*>(context->uc_mcontext.gp_regs[32]); in GetProgramCounter()
[all …]
/third_party/abseil-cpp/absl/debugging/internal/
Dexamine_stack.cc48 return reinterpret_cast<void*>(context->uc_mcontext.pc); in GetProgramCounter()
50 return reinterpret_cast<void*>(context->uc_mcontext.arm_pc); in GetProgramCounter()
52 if (14 < ABSL_ARRAYSIZE(context->uc_mcontext.gregs)) in GetProgramCounter()
53 return reinterpret_cast<void*>(context->uc_mcontext.gregs[14]); in GetProgramCounter()
55 return reinterpret_cast<void*>(context->uc_mcontext.pc); in GetProgramCounter()
57 return reinterpret_cast<void*>(context->uc_mcontext.gp_regs[32]); in GetProgramCounter()
59 return reinterpret_cast<void*>(context->uc_mcontext.regs->nip); in GetProgramCounter()
61 return reinterpret_cast<void*>(context->uc_mcontext.__gregs[REG_PC]); in GetProgramCounter()
63 return reinterpret_cast<void*>(context->uc_mcontext.psw.addr & 0x7fffffff); in GetProgramCounter()
65 return reinterpret_cast<void*>(context->uc_mcontext.psw.addr); in GetProgramCounter()
[all …]
/third_party/libunwind/src/x86/
DGos-linux.c260 case UNW_X86_GS: addr = &uc->uc_mcontext.gregs[REG_GS]; break; in x86_r_uc_addr()
261 case UNW_X86_FS: addr = &uc->uc_mcontext.gregs[REG_FS]; break; in x86_r_uc_addr()
262 case UNW_X86_ES: addr = &uc->uc_mcontext.gregs[REG_ES]; break; in x86_r_uc_addr()
263 case UNW_X86_DS: addr = &uc->uc_mcontext.gregs[REG_DS]; break; in x86_r_uc_addr()
264 case UNW_X86_EAX: addr = &uc->uc_mcontext.gregs[REG_EAX]; break; in x86_r_uc_addr()
265 case UNW_X86_EBX: addr = &uc->uc_mcontext.gregs[REG_EBX]; break; in x86_r_uc_addr()
266 case UNW_X86_ECX: addr = &uc->uc_mcontext.gregs[REG_ECX]; break; in x86_r_uc_addr()
267 case UNW_X86_EDX: addr = &uc->uc_mcontext.gregs[REG_EDX]; break; in x86_r_uc_addr()
268 case UNW_X86_ESI: addr = &uc->uc_mcontext.gregs[REG_ESI]; break; in x86_r_uc_addr()
269 case UNW_X86_EDI: addr = &uc->uc_mcontext.gregs[REG_EDI]; break; in x86_r_uc_addr()
[all …]
DGos-freebsd.c324 case UNW_X86_GS: addr = &uc->uc_mcontext.mc_gs; break; in x86_r_uc_addr()
325 case UNW_X86_FS: addr = &uc->uc_mcontext.mc_fs; break; in x86_r_uc_addr()
326 case UNW_X86_ES: addr = &uc->uc_mcontext.mc_es; break; in x86_r_uc_addr()
327 case UNW_X86_DS: addr = &uc->uc_mcontext.mc_ds; break; in x86_r_uc_addr()
328 case UNW_X86_EAX: addr = &uc->uc_mcontext.mc_eax; break; in x86_r_uc_addr()
329 case UNW_X86_EBX: addr = &uc->uc_mcontext.mc_ebx; break; in x86_r_uc_addr()
330 case UNW_X86_ECX: addr = &uc->uc_mcontext.mc_ecx; break; in x86_r_uc_addr()
331 case UNW_X86_EDX: addr = &uc->uc_mcontext.mc_edx; break; in x86_r_uc_addr()
332 case UNW_X86_ESI: addr = &uc->uc_mcontext.mc_esi; break; in x86_r_uc_addr()
333 case UNW_X86_EDI: addr = &uc->uc_mcontext.mc_edi; break; in x86_r_uc_addr()
[all …]
/third_party/libunwind/src/s390x/
DGresume.c43 uc.uc_mcontext.psw.addr = c->dwarf.ip; in s390x_local_resume()
63 sc->sregs->regs.gprs[i-UNW_S390X_R0] = uc.uc_mcontext.gregs[i-UNW_S390X_R0]; in s390x_local_resume()
65 sc->sregs->fpregs.fprs[i-UNW_S390X_F0] = uc.uc_mcontext.fpregs.fprs[i-UNW_S390X_F0].d; in s390x_local_resume()
66 sc->sregs->regs.psw.addr = uc.uc_mcontext.psw.addr; in s390x_local_resume()
81 rt->uc_mcontext.gregs[i-UNW_S390X_R0] = uc.uc_mcontext.gregs[i-UNW_S390X_R0]; in s390x_local_resume()
83 rt->uc_mcontext.fpregs.fprs[i-UNW_S390X_F0] = uc.uc_mcontext.fpregs.fprs[i-UNW_S390X_F0]; in s390x_local_resume()
84 rt->uc_mcontext.psw.addr = uc.uc_mcontext.psw.addr; in s390x_local_resume()
DGstep.c57 gprs = ((ucontext_t*)sc_addr)->uc_mcontext.gregs; in s390x_handle_signal_frame()
58 fprs = (unw_word_t*)((ucontext_t*)sc_addr)->uc_mcontext.fpregs.fprs; in s390x_handle_signal_frame()
59 psw = &((ucontext_t*)sc_addr)->uc_mcontext.psw.addr; in s390x_handle_signal_frame()
/third_party/libunwind/src/ppc64/
DGinit.c52 addr = &uc->uc_mcontext.gp_regs[reg - UNW_PPC64_R0]; in uc_addr()
54 addr = &uc->uc_mcontext.mc_gpr[reg - UNW_PPC64_R0]; in uc_addr()
59 addr = &uc->uc_mcontext.fp_regs[reg - UNW_PPC64_F0]; in uc_addr()
61 addr = &uc->uc_mcontext.mc_fpreg[reg - UNW_PPC64_F0]; in uc_addr()
66 …addr = (uc->uc_mcontext.v_regs == 0) ? NULL : &uc->uc_mcontext.v_regs->vrregs[reg - UNW_PPC64_V0][… in uc_addr()
68 addr = &uc->uc_mcontext.mc_avec[(reg - UNW_PPC64_V0)*2]; in uc_addr()
96 addr = &uc->uc_mcontext.gp_regs[gregs_idx]; in uc_addr()
98 addr = &uc->uc_mcontext.mc_gpr[gregs_idx]; in uc_addr()
Ducontext_i.h53 #define UC_MCONTEXT_V_REGS ( ((void *)&dmy_ctxt.uc_mcontext.v_regs - (void *)&dmy_ctxt) )
55 #define _UC_MCONTEXT_GPR(x) ( ((void *)&dmy_ctxt.uc_mcontext.gp_regs[x] - (void *)&dmy_ctxt) )
56 #define _UC_MCONTEXT_FPR(x) ( ((void *)&dmy_ctxt.uc_mcontext.fp_regs[x] - (void *)&dmy_ctxt) )
/third_party/libunwind/src/ia64/
Dunwind_i.h69 case UNW_IA64_IP: addr = &uc->uc_mcontext.sc_br[0]; break; in inlined_uc_addr()
70 case UNW_IA64_CFM: addr = &uc->uc_mcontext.sc_ar_pfs; break; in inlined_uc_addr()
71 case UNW_IA64_AR_RNAT: addr = &uc->uc_mcontext.sc_ar_rnat; break; in inlined_uc_addr()
72 case UNW_IA64_AR_UNAT: addr = &uc->uc_mcontext.sc_ar_unat; break; in inlined_uc_addr()
73 case UNW_IA64_AR_LC: addr = &uc->uc_mcontext.sc_ar_lc; break; in inlined_uc_addr()
74 case UNW_IA64_AR_FPSR: addr = &uc->uc_mcontext.sc_ar_fpsr; break; in inlined_uc_addr()
75 case UNW_IA64_PR: addr = &uc->uc_mcontext.sc_pr; break; in inlined_uc_addr()
76 case UNW_IA64_AR_BSPSTORE: addr = &uc->uc_mcontext.sc_ar_bsp; break; in inlined_uc_addr()
80 addr = &uc->uc_mcontext.sc_gr[reg - UNW_IA64_GR]; in inlined_uc_addr()
85 addr = &uc->uc_mcontext.sc_nat; in inlined_uc_addr()
[all …]
DGinit_local.c62 sol = (uc->uc_mcontext.sc_ar_pfs >> 7) & 0x7f; in get_initial_stack_pointers()
63 bspstore = uc->uc_mcontext.sc_ar_bsp; in get_initial_stack_pointers()
64 *sp = uc->uc_mcontext.sc_gr[12]; in get_initial_stack_pointers()
/third_party/libunwind/tests/
DGtest-trace.c192 printf (" @ %lx", uc->uc_mcontext.sc_ip); in sighandler()
205 printf (" @ %lx", (unsigned long) uc->uc_mcontext.gregs[REG_EIP]); in sighandler()
207 printf (" @ %lx", (unsigned long) uc->uc_mcontext.mc_eip); in sighandler()
211 printf (" @ %lx", (unsigned long) uc->uc_mcontext.gregs[REG_RIP]); in sighandler()
213 printf (" @ %lx", (unsigned long) uc->uc_mcontext.mc_rip); in sighandler()
217 printf (" @ %lx", (unsigned long) uc->uc_mcontext.arm_pc); in sighandler()
219 printf (" @ %lx", (unsigned long) uc->uc_mcontext.__gregs[_REG_PC]); in sighandler()
Dtest-coredump-unwind.c219 ip = uc->uc_mcontext.gregs[REG_EIP]; in handle_sigsegv()
221 ip = uc->uc_mcontext.gregs[REG_RIP]; in handle_sigsegv()
223 ip = uc->uc_mcontext.arm_pc; in handle_sigsegv()
227 ip = uc->uc_mcontext.mc_eip; in handle_sigsegv()
229 ip = uc->uc_mcontext.mc_rip; in handle_sigsegv()
DGtest-bt.c180 printf (" @ %lx", uc->uc_mcontext.sc_ip); in sighandler()
193 printf (" @ %lx", (unsigned long) uc->uc_mcontext.gregs[REG_EIP]); in sighandler()
195 printf (" @ %lx", (unsigned long) uc->uc_mcontext.mc_eip); in sighandler()
199 printf (" @ %lx", (unsigned long) uc->uc_mcontext.gregs[REG_RIP]); in sighandler()
201 printf (" @ %lx", (unsigned long) uc->uc_mcontext.mc_rip); in sighandler()
/third_party/libunwind/src/mips/
Dgen-offsets.c24 UC ("MCONTEXT", uc_mcontext); in main()
27 UC ("MCONTEXT_GREGS", uc_mcontext.gregs); in main()
/third_party/libunwind/src/tilegx/
Dgen-offsets.c24 UC ("MCONTEXT", uc_mcontext); in main()
27 UC ("MCONTEXT_GREGS", uc_mcontext.gregs); in main()
/third_party/ltp/testcases/cve/
Dcve-2015-3290.c150 struct selectors *sels = (void *)&ctx->uc_mcontext.gregs[REG_CSGSFS]; in ssptr()
157 struct selectors *sels = (void *)&ctx->uc_mcontext.gregs[REG_CSGSFS]; in csptr()
169 return &ctx->uc_mcontext.gregs[REG_SS]; in ssptr()
175 return &ctx->uc_mcontext.gregs[REG_CS]; in csptr()
/third_party/musl/src/thread/
Dpthread_cancel.c52 uintptr_t pc = uc->uc_mcontext.MC_PC; in cancel_handler()
60 uc->uc_mcontext.MC_PC = (uintptr_t)__cp_cancel; in cancel_handler()
62 uc->uc_mcontext.MC_GOT = CANCEL_GOT; in cancel_handler()
/third_party/libunwind/include/
Dlibunwind-aarch64.h211 struct unw_sigcontext uc_mcontext; member
231 #define UNW_BASE register uint64_t unw_base __asm__ ("x0") = (uint64_t) unw_ctx->uc_mcontext.regs;

123