Lines Matching refs:error
62 Status error; in Launch() local
69 error.SetErrorStringWithFormat("No such file or directory: %s", in Launch()
71 return error; in Launch()
79 error = LaunchInferior(launch_info, &pty_master_fd, &launch_flavor); in Launch()
82 if (!error.Success()) { in Launch()
86 __FUNCTION__, error.AsCString()); in Launch()
87 return error; in Launch()
96 return error; in Launch()
104 error.SetErrorStringWithFormat("failed to register the native delegate"); in Launch()
105 return error; in Launch()
110 error = np_darwin_sp->FinalizeLaunch(launch_flavor, mainloop); in Launch()
111 if (!error.Success()) { in Launch()
115 __FUNCTION__, error.AsCString()); in Launch()
116 return error; in Launch()
121 return error; in Launch()
134 Status error = ResolveProcessArchitecture(pid, process_arch); in Attach() local
135 if (!error.Success()) in Attach()
136 return error; in Attach()
144 error.SetErrorStringWithFormat("failed to register the native " in Attach()
146 return error; in Attach()
149 native_process_darwin_sp->AttachToInferior(mainloop, pid, error); in Attach()
150 if (!error.Success()) in Attach()
151 return error; in Attach()
154 return error; in Attach()
180 Status error; in FinalizeLaunch() local
191 error = StartExceptionThread(); in FinalizeLaunch()
192 if (!error.Success()) { in FinalizeLaunch()
196 __FUNCTION__, error.AsCString()); in FinalizeLaunch()
204 return error; in FinalizeLaunch()
220 error.SetErrorToErrno(); in FinalizeLaunch()
225 __FUNCTION__, m_pid, (int)error.GetError(), in FinalizeLaunch()
226 error.AsCString()); in FinalizeLaunch()
227 return error; in FinalizeLaunch()
236 error = StartWaitpidThread(main_loop); in FinalizeLaunch()
237 if (error.Fail()) { in FinalizeLaunch()
241 __FUNCTION__, error.AsCString()); in FinalizeLaunch()
243 return error; in FinalizeLaunch()
246 if (TaskPortForProcessID(error) == TASK_NULL) { in FinalizeLaunch()
253 __FUNCTION__, error.AsCString()); in FinalizeLaunch()
255 return error; in FinalizeLaunch()
262 return error; in FinalizeLaunch()
351 Status error; in DoExceptionThread() local
415 error = exception_message.Receive( in DoExceptionThread()
421 error = exception_message.Receive(GetExceptionPort(), in DoExceptionThread()
428 error = exception_message.Receive(GetExceptionPort(), in DoExceptionThread()
432 if (error.Success()) { in DoExceptionThread()
439 if (error.GetError() == MACH_RCV_INTERRUPTED) { in DoExceptionThread()
474 } else if (error.GetError() == MACH_RCV_TIMED_OUT) { in DoExceptionThread()
524 __FUNCTION__, error.GetError(), error.AsCString()); in DoExceptionThread()
550 Status error; in StartExceptionThread() local
556 TaskPortForProcessID(error); in StartExceptionThread()
560 error.SetErrorStringWithFormat("cannot start exception thread: " in StartExceptionThread()
563 return error; in StartExceptionThread()
572 error.SetError(mach_err, eErrorTypeMachKernel); in StartExceptionThread()
573 if (error.Fail()) { in StartExceptionThread()
578 __FUNCTION__, task_self, error.GetError(), error.AsCString()); in StartExceptionThread()
579 return error; in StartExceptionThread()
585 error.SetError(mach_err, eErrorTypeMachKernel); in StartExceptionThread()
586 if (error.Fail()) { in StartExceptionThread()
593 error.GetError(), error.AsCString()); in StartExceptionThread()
594 return error; in StartExceptionThread()
598 error = SaveExceptionPortInfo(); in StartExceptionThread()
599 if (error.Fail() || (m_exc_port_info.mask == 0)) { in StartExceptionThread()
603 __FUNCTION__, error.AsCString()); in StartExceptionThread()
604 return error; in StartExceptionThread()
611 error.SetError(mach_err, eErrorTypeMachKernel); in StartExceptionThread()
612 if (error.Fail()) { in StartExceptionThread()
620 error.GetError(), error.AsCString()); in StartExceptionThread()
621 return error; in StartExceptionThread()
627 error.SetError(pthread_err, eErrorTypePOSIX); in StartExceptionThread()
628 if (error.Fail()) { in StartExceptionThread()
632 __FUNCTION__, error.GetError(), error.AsCString()); in StartExceptionThread()
635 return error; in StartExceptionThread()
639 NativeProcessDarwin::GetDYLDAllImageInfosAddress(Status &error) const { in GetDYLDAllImageInfosAddress()
640 error.Clear(); in GetDYLDAllImageInfosAddress()
650 TaskPortForProcessID(error); in GetDYLDAllImageInfosAddress()
651 if (error.Fail()) in GetDYLDAllImageInfosAddress()
656 error.SetError(mach_err, eErrorTypeMachKernel); in GetDYLDAllImageInfosAddress()
657 if (error.Success()) { in GetDYLDAllImageInfosAddress()
693 Status error; in ExceptionMessageBundleComplete() local
729 const addr_t aii_addr = GetDYLDAllImageInfosAddress(error); in ExceptionMessageBundleComplete()
751 const task_t new_task = TaskPortForProcessID(error, force_update); in ExceptionMessageBundleComplete()
884 Status error; in StartWaitpidThread() local
896 error = m_waitpid_pipe.CreateNew(child_inherits); in StartWaitpidThread()
897 if (error.Fail()) { in StartWaitpidThread()
901 __FUNCTION__, error.AsCString()); in StartWaitpidThread()
902 return error; in StartWaitpidThread()
912 io_sp, [this](MainLoopBase &) { HandleWaitpidResult(); }, error); in StartWaitpidThread()
917 error.SetError(pthread_err, eErrorTypePOSIX); in StartWaitpidThread()
918 if (error.Fail()) { in StartWaitpidThread()
922 __FUNCTION__, error.GetError(), error.AsCString()); in StartWaitpidThread()
923 return error; in StartWaitpidThread()
926 return error; in StartWaitpidThread()
971 Status error; in DoWaitpidThread() local
978 error.SetErrorToErrno(); in DoWaitpidThread()
979 if (error.Fail()) { in DoWaitpidThread()
980 if (error.GetError() == EINTR) { in DoWaitpidThread()
993 __FUNCTION__, m_pid, error.GetError(), error.AsCString()); in DoWaitpidThread()
1018 error = SendInferiorExitStatusToMainLoop(child_pid, status); in DoWaitpidThread()
1032 error = SendInferiorExitStatusToMainLoop((::pid_t)m_pid, -1); in DoWaitpidThread()
1038 Status error; in SendInferiorExitStatusToMainLoop() local
1044 error = m_waitpid_pipe.Write(&pid, sizeof(pid), bytes_written); in SendInferiorExitStatusToMainLoop()
1045 if (error.Fail() || (bytes_written < sizeof(pid))) { in SendInferiorExitStatusToMainLoop()
1051 return error; in SendInferiorExitStatusToMainLoop()
1056 error = m_waitpid_pipe.Write(&status, sizeof(status), bytes_written); in SendInferiorExitStatusToMainLoop()
1057 if (error.Fail() || (bytes_written < sizeof(status))) { in SendInferiorExitStatusToMainLoop()
1064 return error; in SendInferiorExitStatusToMainLoop()
1068 Status error; in HandleWaitpidResult() local
1076 error = m_waitpid_pipe.Read(&pid, sizeof(pid), bytes_read); in HandleWaitpidResult()
1077 if (error.Fail() || (bytes_read < sizeof(pid))) { in HandleWaitpidResult()
1084 return error; in HandleWaitpidResult()
1089 error = m_waitpid_pipe.Read(&status, sizeof(status), bytes_read); in HandleWaitpidResult()
1090 if (error.Fail() || (bytes_read < sizeof(status))) { in HandleWaitpidResult()
1097 return error; in HandleWaitpidResult()
1108 return error; in HandleWaitpidResult()
1111 task_t NativeProcessDarwin::TaskPortForProcessID(Status &error, in TaskPortForProcessID() argument
1133 error.Clear(); in TaskPortForProcessID()
1142 error.SetError(err, eErrorTypeMachKernel); in TaskPortForProcessID()
1147 __FUNCTION__, task_self, m_pid, err, error.AsCString()); in TaskPortForProcessID()
1163 Status &error) { in AttachToInferior() argument
1164 error.SetErrorString("TODO: implement"); in AttachToInferior()
1168 Status error; in PrivateResume() local
1184 error = ReplyToAllExceptions(); in PrivateResume()
1185 if (error.Fail()) { in PrivateResume()
1189 __FUNCTION__, error.AsCString()); in PrivateResume()
1190 return error; in PrivateResume()
1206 error = ResumeTask(); in PrivateResume()
1207 return error; in PrivateResume()
1211 Status error; in ReplyToAllExceptions() local
1214 TaskPortForProcessID(error); in ReplyToAllExceptions()
1215 if (error.Fail()) { in ReplyToAllExceptions()
1219 return error; in ReplyToAllExceptions()
1225 return error; in ReplyToAllExceptions()
1250 error = message.Reply(m_pid, m_task, thread_reply_signal); in ReplyToAllExceptions()
1251 if (error.Fail() && log) { in ReplyToAllExceptions()
1256 __FUNCTION__, error.AsCString()); in ReplyToAllExceptions()
1257 error.Clear(); in ReplyToAllExceptions()
1264 return error; in ReplyToAllExceptions()
1268 Status error; in ResumeTask() local
1271 TaskPortForProcessID(error); in ResumeTask()
1272 if (error.Fail()) { in ResumeTask()
1276 __FUNCTION__, error.AsCString()); in ResumeTask()
1277 return error; in ResumeTask()
1280 error.SetErrorString("task port retrieval succeeded but task port is " in ResumeTask()
1282 return error; in ResumeTask()
1293 error = GetTaskBasicInfo(m_task, &task_info); in ResumeTask()
1294 if (error.Fail()) { in ResumeTask()
1298 __FUNCTION__, error.AsCString()); in ResumeTask()
1299 return error; in ResumeTask()
1306 error.SetError(mach_err, eErrorTypeMachKernel); in ResumeTask()
1308 if (error.Success()) in ResumeTask()
1312 error.AsCString()); in ResumeTask()
1321 return error; in ResumeTask()
1351 Status error; in GetTaskBasicInfo() local
1356 error.SetErrorStringWithFormat("NativeProcessDarwin::%s(): mandatory " in GetTaskBasicInfo()
1359 return error; in GetTaskBasicInfo()
1364 error.SetErrorStringWithFormat("NativeProcessDarwin::%s(): given task " in GetTaskBasicInfo()
1371 error.SetError(err, eErrorTypeMachKernel); in GetTaskBasicInfo()
1372 if (error.Fail()) { in GetTaskBasicInfo()
1377 m_task, info, count, error.GetError(), error.AsCString()); in GetTaskBasicInfo()
1378 return error; in GetTaskBasicInfo()
1394 return error; in GetTaskBasicInfo()
1398 Status error; in SuspendTask() local
1402 error.SetErrorString("task port is null, cannot suspend task"); in SuspendTask()
1405 error.AsCString()); in SuspendTask()
1406 return error; in SuspendTask()
1410 error.SetError(mach_err, eErrorTypeMachKernel); in SuspendTask()
1411 if (error.Fail() && log) in SuspendTask()
1414 return error; in SuspendTask()
1418 Status error; in Resume() local
1426 error = PrivateResume(); in Resume()
1427 return error; in Resume()
1435 __FUNCTION__, TaskPortForProcessID(error)); in Resume()
1436 return error; in Resume()
1440 error.SetErrorStringWithFormat("task 0x%x has state %s, can't resume", in Resume()
1441 TaskPortForProcessID(error), in Resume()
1443 return error; in Resume()
1447 Status error; in Halt() local
1448 error.SetErrorString("TODO: implement"); in Halt()
1449 return error; in Halt()
1453 Status error; in Detach() local
1454 error.SetErrorString("TODO: implement"); in Detach()
1455 return error; in Detach()
1459 Status error; in Signal() local
1460 error.SetErrorString("TODO: implement"); in Signal()
1461 return error; in Signal()
1465 Status error; in Interrupt() local
1466 error.SetErrorString("TODO: implement"); in Interrupt()
1467 return error; in Interrupt()
1471 Status error; in Kill() local
1472 error.SetErrorString("TODO: implement"); in Kill()
1473 return error; in Kill()
1478 Status error; in GetMemoryRegionInfo() local
1479 error.SetErrorString("TODO: implement"); in GetMemoryRegionInfo()
1480 return error; in GetMemoryRegionInfo()
1485 Status error; in ReadMemory() local
1486 error.SetErrorString("TODO: implement"); in ReadMemory()
1487 return error; in ReadMemory()
1493 Status error; in ReadMemoryWithoutTrap() local
1494 error.SetErrorString("TODO: implement"); in ReadMemoryWithoutTrap()
1495 return error; in ReadMemoryWithoutTrap()
1500 Status error; in WriteMemory() local
1501 error.SetErrorString("TODO: implement"); in WriteMemory()
1502 return error; in WriteMemory()
1507 Status error; in AllocateMemory() local
1508 error.SetErrorString("TODO: implement"); in AllocateMemory()
1509 return error; in AllocateMemory()
1513 Status error; in DeallocateMemory() local
1514 error.SetErrorString("TODO: implement"); in DeallocateMemory()
1515 return error; in DeallocateMemory()
1530 Status error; in SetBreakpoint() local
1531 error.SetErrorString("TODO: implement"); in SetBreakpoint()
1532 return error; in SetBreakpoint()
1539 Status error; in GetLoadedModuleFileSpec() local
1540 error.SetErrorString("TODO: implement"); in GetLoadedModuleFileSpec()
1541 return error; in GetLoadedModuleFileSpec()
1546 Status error; in GetFileLoadAddress() local
1547 error.SetErrorString("TODO: implement"); in GetFileLoadAddress()
1548 return error; in GetFileLoadAddress()
1557 Status error; in GetSoftwareBreakpointTrapOpcode() local
1558 error.SetErrorString("TODO: implement"); in GetSoftwareBreakpointTrapOpcode()
1559 return error; in GetSoftwareBreakpointTrapOpcode()