Lines Matching refs:context
390 const void* context; // a CrashContext structure member
404 return thread_arg->handler->DoDump(thread_arg->pid, thread_arg->context, in ThreadEntry()
421 CrashContext context; in HandleSignal() local
423 memset(&context, 0, sizeof(context)); in HandleSignal()
424 memcpy(&context.siginfo, info, sizeof(siginfo_t)); in HandleSignal()
425 memcpy(&context.context, uc, sizeof(struct ucontext)); in HandleSignal()
431 memcpy(&context.float_state, fp_ptr, sizeof(context.float_state)); in HandleSignal()
439 memcpy(&context.float_state, in HandleSignal()
441 sizeof(context.float_state)); in HandleSignal()
444 context.tid = syscall(__NR_gettid); in HandleSignal()
446 if (crash_handler_(&context, sizeof(context), callback_context_)) { in HandleSignal()
450 return GenerateDump(&context); in HandleSignal()
461 struct ucontext context; in SimulateSignalDelivery() local
462 getcontext(&context); in SimulateSignalDelivery()
463 return HandleSignal(sig, &siginfo, &context); in SimulateSignalDelivery()
467 bool ExceptionHandler::GenerateDump(CrashContext *context) { in GenerateDump() argument
469 return crash_generation_client_->RequestDump(context, sizeof(*context)); in GenerateDump()
486 thread_arg.context = context; in GenerateDump()
487 thread_arg.context_size = sizeof(*context); in GenerateDump()
569 bool ExceptionHandler::DoDump(pid_t crashing_process, const void* context, in DoDump() argument
573 context, in DoDump()
581 context, in DoDump()
589 context, in DoDump()
629 CrashContext context; in WriteMinidump() local
630 int getcontext_result = getcontext(&context.context); in WriteMinidump()
640 if (!context.context.uc_mcontext.gregs[REG_UESP]) { in WriteMinidump()
647 context.context.uc_mcontext.gregs[REG_UESP] = in WriteMinidump()
648 context.context.uc_mcontext.gregs[REG_EBP] - 16; in WriteMinidump()
651 context.context.uc_mcontext.gregs[REG_ESP] = in WriteMinidump()
652 context.context.uc_mcontext.gregs[REG_UESP]; in WriteMinidump()
658 memcpy(&context.float_state, context.context.uc_mcontext.fpregs, in WriteMinidump()
659 sizeof(context.float_state)); in WriteMinidump()
661 context.tid = sys_gettid(); in WriteMinidump()
664 memset(&context.siginfo, 0, sizeof(context.siginfo)); in WriteMinidump()
665 context.siginfo.si_signo = MD_EXCEPTION_CODE_LIN_DUMP_REQUESTED; in WriteMinidump()
667 context.siginfo.si_addr = in WriteMinidump()
668 reinterpret_cast<void*>(context.context.uc_mcontext.gregs[REG_EIP]); in WriteMinidump()
670 context.siginfo.si_addr = in WriteMinidump()
671 reinterpret_cast<void*>(context.context.uc_mcontext.gregs[REG_RIP]); in WriteMinidump()
673 context.siginfo.si_addr = in WriteMinidump()
674 reinterpret_cast<void*>(context.context.uc_mcontext.arm_pc); in WriteMinidump()
676 context.siginfo.si_addr = in WriteMinidump()
677 reinterpret_cast<void*>(context.context.uc_mcontext.pc); in WriteMinidump()
679 context.siginfo.si_addr = in WriteMinidump()
680 reinterpret_cast<void*>(context.context.uc_mcontext.pc); in WriteMinidump()
685 return GenerateDump(&context); in WriteMinidump()