Home
last modified time | relevance | path

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

12

/external/qemu/
Dcpu-exec.c855 # define EIP_sig(context) (*((unsigned long*)&(context)->uc_mcontext->ss.eip))
856 # define TRAP_sig(context) ((context)->uc_mcontext->es.trapno)
857 # define ERROR_sig(context) ((context)->uc_mcontext->es.err)
862 # define EIP_sig(context) ((context)->uc_mcontext.__gregs[_REG_EIP])
863 # define TRAP_sig(context) ((context)->uc_mcontext.__gregs[_REG_TRAPNO])
864 # define ERROR_sig(context) ((context)->uc_mcontext.__gregs[_REG_ERR])
869 # define EIP_sig(context) (*((unsigned long*)&(context)->uc_mcontext.mc_eip))
870 # define TRAP_sig(context) ((context)->uc_mcontext.mc_trapno)
871 # define ERROR_sig(context) ((context)->uc_mcontext.mc_err)
879 # define EIP_sig(context) ((context)->uc_mcontext.gregs[REG_EIP])
[all …]
/external/valgrind/main/coregrind/m_sigframe/
Dsigframe-ppc64-linux.c246 # define DO(gpr) frame->uc.uc_mcontext.gp_regs[VKI_PT_R0+gpr] \ in VG_()
254 frame->uc.uc_mcontext.gp_regs[VKI_PT_NIP] = tst->arch.vex.guest_CIA; in VG_()
255 frame->uc.uc_mcontext.gp_regs[VKI_PT_MSR] = 0xf032; /* pretty arbitrary */ in VG_()
256 frame->uc.uc_mcontext.gp_regs[VKI_PT_ORIG_R3] = tst->arch.vex.guest_GPR3; in VG_()
257 frame->uc.uc_mcontext.gp_regs[VKI_PT_CTR] = tst->arch.vex.guest_CTR; in VG_()
258 frame->uc.uc_mcontext.gp_regs[VKI_PT_LNK] = tst->arch.vex.guest_LR; in VG_()
259 frame->uc.uc_mcontext.gp_regs[VKI_PT_XER] = LibVEX_GuestPPC64_get_XER( in VG_()
261 frame->uc.uc_mcontext.gp_regs[VKI_PT_CCR] = LibVEX_GuestPPC64_get_CR( in VG_()
359 = frame->uc.uc_mcontext.gp_regs[VKI_PT_R0+gpr] in VG_()
366 tst->arch.vex.guest_CIA = frame->uc.uc_mcontext.gp_regs[VKI_PT_NIP]; in VG_()
[all …]
Dsigframe-x86-linux.c356 struct vki_sigcontext *sc = &uc->uc_mcontext; in synth_ucontext()
496 trapno = siguc->uc_mcontext.trapno; in build_sigframe()
497 err = siguc->uc_mcontext.err; in build_sigframe()
505 VG_(memcpy)(&frame->sigContext, &uc.uc_mcontext, in build_sigframe()
553 trapno = siguc->uc_mcontext.trapno; in build_rt_sigframe()
554 err = siguc->uc_mcontext.err; in build_rt_sigframe()
690 restore_sigcontext(tst, &frame->uContext.uc_mcontext, &frame->fpstate); in restore_rt_sigframe()
Dsigframe-arm-linux.c128 struct vki_sigcontext *sc = &uc->uc_mcontext; in synth_ucontext()
179 trapno = siguc->uc_mcontext.trap_no; in build_sigframe()
180 err = siguc->uc_mcontext.error_code; in build_sigframe()
290 mc = &frame->sig.uc.uc_mcontext; in VG_()
297 mc = &frame->uc.uc_mcontext; in VG_()
Dsigframe-amd64-linux.c332 struct vki_sigcontext *sc = &uc->uc_mcontext; in synth_ucontext()
471 trapno = siguc->uc_mcontext.trapno; in build_rt_sigframe()
472 err = siguc->uc_mcontext.err; in build_rt_sigframe()
602 restore_sigcontext(tst, &frame->uContext.uc_mcontext, &frame->fpstate); in restore_rt_sigframe()
Dsigframe-ppc32-linux.c732 ucp->uc_regs = &ucp->uc_mcontext; in VG_()
738 stack_mcontext(&ucp->uc_mcontext, tst, True/*use_rt_sigreturn*/, faultaddr); in VG_()
904 mc = &frame->ucontext.uc_mcontext; in VG_()
Dsigframe-s390x-linux.c410 save_sigregs(tst, &frame->uc.uc_mcontext); in build_rt_sigframe()
528 restore_sigregs(tst, &frame->uc.uc_mcontext); in restore_rt_sigframe()
/external/valgrind/main/coregrind/
Dm_signals.c271 # define VG_UCONTEXT_INSTR_PTR(uc) ((uc)->uc_mcontext.eip)
272 # define VG_UCONTEXT_STACK_PTR(uc) ((uc)->uc_mcontext.esp)
275 VG_(mk_SysRes_x86_linux)( (uc)->uc_mcontext.eax )
277 { (srP)->r_pc = (ULong)((uc)->uc_mcontext.eip); \
278 (srP)->r_sp = (ULong)((uc)->uc_mcontext.esp); \
279 (srP)->misc.X86.r_ebp = (uc)->uc_mcontext.ebp; \
283 # define VG_UCONTEXT_INSTR_PTR(uc) ((uc)->uc_mcontext.rip)
284 # define VG_UCONTEXT_STACK_PTR(uc) ((uc)->uc_mcontext.rsp)
287 VG_(mk_SysRes_amd64_linux)( (uc)->uc_mcontext.rax )
289 { (srP)->r_pc = (uc)->uc_mcontext.rip; \
[all …]
/external/compiler-rt/lib/asan/
Dasan_linux.cc57 *pc = ucontext->uc_mcontext.arm_pc; in GetPcSpBp()
58 *bp = ucontext->uc_mcontext.arm_fp; in GetPcSpBp()
59 *sp = ucontext->uc_mcontext.arm_sp; in GetPcSpBp()
62 *pc = ucontext->uc_mcontext.gregs[REG_RIP]; in GetPcSpBp()
63 *bp = ucontext->uc_mcontext.gregs[REG_RBP]; in GetPcSpBp()
64 *sp = ucontext->uc_mcontext.gregs[REG_RSP]; in GetPcSpBp()
67 *pc = ucontext->uc_mcontext.gregs[REG_EIP]; in GetPcSpBp()
68 *bp = ucontext->uc_mcontext.gregs[REG_EBP]; in GetPcSpBp()
69 *sp = ucontext->uc_mcontext.gregs[REG_ESP]; in GetPcSpBp()
Dasan_mac.cc43 *pc = ucontext->uc_mcontext->__ss.__rip; in GetPcSpBp()
44 *bp = ucontext->uc_mcontext->__ss.__rbp; in GetPcSpBp()
45 *sp = ucontext->uc_mcontext->__ss.__rsp; in GetPcSpBp()
47 *pc = ucontext->uc_mcontext->__ss.__eip; in GetPcSpBp()
48 *bp = ucontext->uc_mcontext->__ss.__ebp; in GetPcSpBp()
49 *sp = ucontext->uc_mcontext->__ss.__esp; in GetPcSpBp()
/external/chromium/base/
Dprocess_util_posix.cc129 context->uc_mcontext->__ss.__eax, in StackDumpSignalHandler()
130 context->uc_mcontext->__ss.__ebx, in StackDumpSignalHandler()
131 context->uc_mcontext->__ss.__ecx, in StackDumpSignalHandler()
132 context->uc_mcontext->__ss.__edx)); in StackDumpSignalHandler()
138 context->uc_mcontext->__ss.__edi, in StackDumpSignalHandler()
139 context->uc_mcontext->__ss.__esi, in StackDumpSignalHandler()
140 context->uc_mcontext->__ss.__ebp, in StackDumpSignalHandler()
141 context->uc_mcontext->__ss.__esp, in StackDumpSignalHandler()
142 context->uc_mcontext->__ss.__ss, in StackDumpSignalHandler()
143 context->uc_mcontext->__ss.__eflags)); in StackDumpSignalHandler()
[all …]
/external/valgrind/main/none/tests/x86-linux/
Dsigcontext.c16 if (uc->uc_mcontext.gregs[REG_EAX] != 0) in handler1()
17 printf("FAILED: handler2 expected eax == 0, not %d\n", uc->uc_mcontext.gregs[REG_EAX]); in handler1()
18 uc->uc_mcontext.gregs[REG_EAX] = VAL1; in handler1()
/external/valgrind/main/memcheck/tests/amd64-linux/
Dint3-amd64.c15 mcontext_t *mc = &(uc->uc_mcontext); in int_handler()
/external/valgrind/main/memcheck/tests/x86-linux/
Dint3-x86.c15 mcontext_t *mc = &(uc->uc_mcontext); in int_handler()
/external/v8/src/
Dplatform-linux.cc959 mcontext_t uc_mcontext; member
992 mcontext_t uc_mcontext; member
1011 mcontext_t uc_mcontext; member
1050 mcontext_t& mcontext = ucontext->uc_mcontext; in ProfilerSignalHandler()
/external/valgrind/main/VEX/test/
Dtest-i386.c1340 uc->uc_mcontext.gregs[REG_TRAPNO],
1341 uc->uc_mcontext.gregs[REG_ERR]);
1342 printf(" EIP=0x%08x", uc->uc_mcontext.gregs[REG_EIP]);
1515 printf("EIP=0x%08x\n", uc->uc_mcontext.gregs[REG_EIP]);
Dtest-amd64.c1380 uc->uc_mcontext.gregs[REG_TRAPNO],
1381 uc->uc_mcontext.gregs[REG_ERR]);
1382 printf(" EIP=0x%08x", uc->uc_mcontext.gregs[REG_EIP]);
1555 printf("EIP=0x%08x\n", uc->uc_mcontext.gregs[REG_EIP]);
/external/valgrind/main/docs/internals/
Dporting-to-ARM.txt152 # define VG_UCONTEXT_INSTR_PTR(uc) ((uc)->uc_mcontext.arm_pc)
153 # define VG_UCONTEXT_STACK_PTR(uc) ((uc)->uc_mcontext.arm_sp)
154 # define VG_UCONTEXT_FRAME_PTR(uc) ((uc)->uc_mcontext.arm_fp)
155 # define VG_UCONTEXT_SYSCALL_NUM(uc) ((uc)->uc_mcontext.arm_r0)
758 struct vki_sigcontext uc_mcontext;
/external/valgrind/main/include/vki/
Dvki-amd64-linux.h515 struct vki_sigcontext uc_mcontext; member
Dvki-ppc32-linux.h751 struct vki_mcontext uc_mcontext; member
Dvki-s390x-linux.h791 _vki_sigregs uc_mcontext; member
Dvki-arm-linux.h599 struct vki_sigcontext uc_mcontext; member
Dvki-x86-linux.h619 struct vki_sigcontext uc_mcontext; member
Dvki-ppc64-linux.h659 struct vki_sigcontext uc_mcontext; /* last for extensibility */ member
/external/flac/libFLAC/
Dcpu.c134 ((ucontext_t*)uc)->uc_mcontext.gregs[14/*REG_EIP*/] += 3 + 3 + 6; in sigill_handler_sse_os()

12