• Home
  • Raw
  • Download

Lines Matching refs:remote

90 RNBRunLoopMode RNBRunLoopGetStartModeFromRemote(RNBRemote *remote) {  in RNBRunLoopGetStartModeFromRemote()  argument
93 if (remote) { in RNBRunLoopGetStartModeFromRemote()
94 RNBContext &ctx = remote->Context(); in RNBRunLoopGetStartModeFromRemote()
117 err = remote->HandleReceivedPacket(&type); in RNBRunLoopGetStartModeFromRemote()
195 RNBRunLoopMode RNBRunLoopLaunchInferior(RNBRemote *remote, in RNBRunLoopLaunchInferior() argument
200 RNBContext &ctx = remote->Context(); in RNBRunLoopLaunchInferior()
269 if (remote->Comm().IsConnected()) { in RNBRunLoopLaunchInferior()
282 err = remote->HandleReceivedPacket(&type); in RNBRunLoopLaunchInferior()
363 RNBRunLoopMode RNBRunLoopLaunchAttaching(RNBRemote *remote, in RNBRunLoopLaunchAttaching() argument
366 RNBContext &ctx = remote->Context(); in RNBRunLoopLaunchAttaching()
421 RNBRunLoopMode HandleProcessStateChange(RNBRemote *remote, bool initialize) { in HandleProcessStateChange() argument
422 RNBContext &ctx = remote->Context(); in HandleProcessStateChange()
461 remote->FlushSTDIO(); in HandleProcessStateChange()
480 remote->NotifyThatProcessStopped(); in HandleProcessStateChange()
498 remote->HandlePacket_last_signal(NULL); in HandleProcessStateChange()
512 RNBRunLoopMode RNBRunLoopInferiorExecuting(RNBRemote *remote) { in RNBRunLoopInferiorExecuting() argument
514 RNBContext &ctx = remote->Context(); in RNBRunLoopInferiorExecuting()
517 RNBRunLoopMode mode = HandleProcessStateChange(remote, true); in RNBRunLoopInferiorExecuting()
552 remote->FlushSTDIO(); in RNBRunLoopInferiorExecuting()
556 remote->SendAsyncProfileData(); in RNBRunLoopInferiorExecuting()
560 remote->SendAsyncDarwinLogData(); in RNBRunLoopInferiorExecuting()
569 if (remote->HandleAsyncPacket() == rnb_not_connected) { in RNBRunLoopInferiorExecuting()
573 if (remote->HandleReceivedPacket() == rnb_not_connected) { in RNBRunLoopInferiorExecuting()
580 mode = HandleProcessStateChange(remote, false); in RNBRunLoopInferiorExecuting()
627 RNBRunLoopMode RNBRunLoopPlatform(RNBRemote *remote) { in RNBRunLoopPlatform() argument
629 RNBContext &ctx = remote->Context(); in RNBRunLoopPlatform()
647 if (remote->HandleReceivedPacket() == rnb_not_connected) in RNBRunLoopPlatform()
728 static int ConnectRemote(RNBRemote *remote, const char *host, int port, in ConnectRemote() argument
731 if (!remote->Comm().IsConnected()) { in ConnectRemote()
738 if (remote->Comm().Connect(host, port) != rnb_success) { in ConnectRemote()
747 if (remote->Comm().Listen(host, port, PortWasBoundCallbackUnixSocket, in ConnectRemote()
753 if (remote->Comm().Listen(host, port, PortWasBoundCallbackNamedPipe, in ConnectRemote()
760 remote->StartReadRemoteDataThread(); in ConnectRemote()
950 RNBRemote *remote = g_remoteSP.get(); in main() local
951 if (remote == NULL) { in main()
956 RNBContext &ctx = remote->Context(); in main()
1261 remote->Context().PushEnvironment(optarg); in main()
1298 if (remote->Context().SetWorkingDirectory(working_dir.c_str()) == false) { in main()
1305 remote->Context().SetDetachOnError(g_detach_on_error); in main()
1307 remote->Initialize(); in main()
1440 remote->Context().PushEnvironmentIfNeeded(env_entry); in main()
1451 if (!remote->Comm().IsConnected()) { in main()
1452 if (remote->Comm().ConnectToService() != rnb_success) { in main()
1462 remote->Comm().Write(applist_plist.c_str(), applist_plist.size()); in main()
1470 remote->Comm().Read(buf); in main()
1472 remote->Comm().Disconnect(false); in main()
1477 remote->StartReadRemoteDataThread(); in main()
1483 if (!ConnectRemote(remote, host.c_str(), port, reverse_connect, in main()
1487 if (remote->Comm().OpenFile(str)) in main()
1493 if (remote->Comm().useFD(communication_fd)) in main()
1496 remote->StartReadRemoteDataThread(); in main()
1503 mode = RNBRunLoopGetStartModeFromRemote(remote); in main()
1545 mode = RNBRunLoopLaunchAttaching(remote, attach_pid, attached_pid); in main()
1547 const char *error_str = remote->Context().LaunchStatus().AsString(); in main()
1585 if (!ConnectRemote(remote, host.c_str(), port, reverse_connect, in main()
1589 if (remote->Comm().OpenFile(str)) in main()
1595 if (remote->Comm().useFD(communication_fd)) in main()
1598 remote->StartReadRemoteDataThread(); in main()
1608 mode = RNBRunLoopLaunchInferior(remote, ctx.GetSTDINPath(), in main()
1614 if (!ConnectRemote(remote, host.c_str(), port, reverse_connect, in main()
1618 if (remote->Comm().OpenFile(str)) in main()
1624 if (remote->Comm().useFD(communication_fd)) in main()
1627 remote->StartReadRemoteDataThread(); in main()
1638 const char *error_str = remote->Context().LaunchStatus().AsString(); in main()
1645 mode = RNBRunLoopInferiorExecuting(remote); in main()
1650 if (!ConnectRemote(remote, host.c_str(), port, reverse_connect, in main()
1654 if (remote->Comm().OpenFile(str)) in main()
1660 if (remote->Comm().useFD(communication_fd)) in main()
1663 remote->StartReadRemoteDataThread(); in main()
1667 mode = RNBRunLoopPlatform(remote); in main()
1678 remote->StopReadRemoteDataThread(); in main()
1679 remote->Context().SetProcessID(INVALID_NUB_PROCESS); in main()