Home | History | Annotate | Download | only in source

Lines Matching defs:remote

71 // Get our program path and arguments from the remote connection.
72 // We will need to start up the remote connection without a PID, get the
77 RNBRunLoopGetStartModeFromRemote (RNBRemote* remote)
81 if (remote)
83 RNBContext& ctx = remote->Context();
105 err = remote->HandleReceivedPacket (&type);
138 // a catch all for any other gdb remote packets that failed
163 RNBRunLoopLaunchInferior (RNBRemote *remote, const char *stdin_path, const char *stdout_path, const char *stderr_path, bool no_stdio)
165 RNBContext& ctx = remote->Context();
251 if (remote->Comm().IsConnected())
266 err = remote->HandleReceivedPacket (&type);
342 RNBRunLoopLaunchAttaching (RNBRemote *remote, nub_process_t attach_pid, nub_process_t& pid)
344 RNBContext& ctx = remote->Context();
408 HandleProcessStateChange (RNBRemote *remote, bool initialize)
410 RNBContext& ctx = remote->Context();
420 DNBLogThreadedIf (LOG_RNB_MINIMAL, "%s (&remote, initialize=%i) pid_state = %s", __FUNCTION__, (int)initialize, DNBStateAsString (pid_state));
449 remote->FlushSTDIO();
453 DNBLogThreadedIf (LOG_RNB_MINIMAL, "%s (&remote, initialize=%i) pid_state = %s pid_stop_count %llu (old %llu)) Notify??? no, first stop...", __FUNCTION__, (int)initialize, DNBStateAsString (pid_state), (uint64_t)ctx.GetProcessStopCount(), (uint64_t)prev_pid_stop_count);
458 DNBLogThreadedIf (LOG_RNB_MINIMAL, "%s (&remote, initialize=%i) pid_state = %s pid_stop_count %llu (old %llu)) Notify??? YES!!!", __FUNCTION__, (int)initialize, DNBStateAsString (pid_state), (uint64_t)ctx.GetProcessStopCount(), (uint64_t)prev_pid_stop_count);
459 remote->NotifyThatProcessStopped ();
464 DNBLogThreadedIf (LOG_RNB_MINIMAL, "%s (&remote, initialize=%i) pid_state = %s pid_stop_count %llu (old %llu)) Notify??? skipping...", __FUNCTION__, (int)initialize, DNBStateAsString (pid_state), (uint64_t)ctx.GetProcessStopCount(), (uint64_t)prev_pid_stop_count);
474 remote->HandlePacket_last_signal(NULL);
484 // we are waiting for gdb remote protocol packets. When a packet occurs that
488 RNBRunLoopInferiorExecuting (RNBRemote *remote)
491 RNBContext& ctx = remote->Context();
494 RNBRunLoopMode mode = HandleProcessStateChange (remote, true);
523 remote->FlushSTDIO();
528 remote->SendAsyncProfileData();
539 if (remote->HandleAsyncPacket() == rnb_not_connected)
546 if (remote->HandleReceivedPacket() == rnb_not_connected)
555 mode = HandleProcessStateChange (remote, false);
567 // Out remote packet receiving thread exited, exit for now.
595 RNBRunLoopPlatform (RNBRemote *remote)
598 RNBContext& ctx = remote->Context();
614 if (remote->HandleReceivedPacket() == rnb_not_connected)
629 // Convenience function to set up the remote listening port
688 StartListening (RNBRemote *remote, const char *listen_host, int listen_port, const char *unix_socket_name)
690 if (!remote->Comm().IsConnected())
694 if (remote->Comm().Listen(listen_host, listen_port, PortWasBoundCallback, unix_socket_name) != rnb_success)
696 RNBLogSTDERR ("Failed to get connection from a remote gdb process.\n");
701 remote->StartReadRemoteDataThread();
788 { "platform", required_argument, NULL, 'p' }, // Put this executable into a remote platform mode
818 RNBRemote *remote = g_remoteSP.get();
819 if (remote == NULL)
821 RNBLogSTDERR ("error: failed to create a remote connection class\n");
825 RNBContext& ctx = remote->Context();
1030 remote->SetUseNativeRegisters (true);
1110 if (remote->Context().SetWorkingDirectory (working_dir.c_str()) == false)
1117 remote->Initialize();
1234 DNBLogDebug("Get args from remote protocol...");
1264 if (!remote->Comm().IsConnected())
1266 if (remote->Comm().ConnectToService () != rnb_success)
1268 RNBLogSTDERR ("Failed to get connection from a remote gdb process.\n");
1279 remote->Comm().Write(applist_plist.c_str(), applist_plist.size());
1284 remote->Comm().Read(buf);
1286 remote->Comm().Disconnect(false);
1292 // Start watching for remote packets
1293 remote->StartReadRemoteDataThread();
1301 if (!StartListening (remote, listen_host.c_str(), listen_port, unix_socket_name.c_str()))
1306 if (remote->Comm().OpenFile (str))
1314 mode = RNBRunLoopGetStartModeFromRemote (remote);
1369 mode = RNBRunLoopLaunchAttaching (remote, attach_pid, attached_pid);
1372 const char *error_str = remote->Context().LaunchStatus().AsString();
1414 if (!StartListening (remote, listen_host.c_str(), listen_port, unix_socket_name.c_str()))
1419 if (remote->Comm().OpenFile (str))
1429 mode = RNBRunLoopLaunchInferior (remote,
1439 if (!StartListening (remote, listen_host.c_str(), listen_port, unix_socket_name.c_str()))
1444 if (remote->Comm().OpenFile (str))
1453 const char *error_str = remote->Context().LaunchStatus().AsString();
1460 mode = RNBRunLoopInferiorExecuting(remote);
1466 if (!StartListening (remote, listen_host.c_str(), listen_port, unix_socket_name.c_str()))
1471 if (remote->Comm().OpenFile (str))
1476 mode = RNBRunLoopPlatform (remote);
1486 remote->StopReadRemoteDataThread ();
1487 remote->Context().SetProcessID(INVALID_NUB_PROCESS);