Lines Matching full:pid
95 const lldb_private::Args &args, lldb::pid_t &pid, std::string &socket_name,
133 pid = debugserver_launch_info.GetProcessID();
134 AddSpawnedProcess(pid);
137 "debugserver launched successfully as pid %" PRIu64,
138 __FUNCTION__, pid);
185 response.Printf("pid:%" PRIu64 ";port:%u;", debugserver_pid, gdbserver_port);
232 lldb::pid_t pid = packet.GetU64(LLDB_INVALID_PROCESS_ID);
234 // verify that we know anything about this pid.
235 if (!SpawnedProcessIsRunning(pid)) {
236 // not a pid we know about
241 if (KillSpawnedProcess(pid))
247 void GDBRemoteCommunicationServerPlatform::AddSpawnedProcess(lldb::pid_t pid) {
248 assert(pid != LLDB_INVALID_PROCESS_ID);
250 m_spawned_pids.insert(pid);
254 lldb::pid_t pid) {
256 return (m_spawned_pids.find(pid) != m_spawned_pids.end());
259 bool GDBRemoteCommunicationServerPlatform::KillSpawnedProcess(lldb::pid_t pid) {
261 if (!SpawnedProcessIsRunning(pid)) {
267 Host::Kill(pid, SIGTERM);
271 if (!SpawnedProcessIsRunning(pid)) {
278 if (!SpawnedProcessIsRunning(pid))
283 Host::Kill(pid, SIGKILL);
286 if (!SpawnedProcessIsRunning(pid)) {
294 return !SpawnedProcessIsRunning(pid);
300 lldb::pid_t pid = m_process_launch_info.GetProcessID();
303 if (pid == LLDB_INVALID_PROCESS_ID)
307 if (!Host::GetProcessInfo(pid, proc_info))
380 lldb::pid_t pid = m_process_launch_info.GetProcessID();
383 response.Printf("QC%" PRIx64, pid);
392 if (pid != LLDB_INVALID_PROCESS_ID) {
428 lldb::pid_t pid) {
430 m_spawned_pids.erase(pid);
458 const auto pid = m_process_launch_info.GetProcessID();
459 AddSpawnedProcess(pid);