Lines Matching refs:pid

74     uint16_t port, lldb::pid_t pid) {  in AssociatePortWithProcess()  argument
77 pos->second = pid; in AssociatePortWithProcess()
93 lldb::pid_t pid) { in FreePortForProcess() argument
96 if (pair.second == pid) { in FreePortForProcess()
116 m_pending_gdb_server.pid = LLDB_INVALID_PROCESS_ID; in GDBRemoteCommunicationServerPlatform()
161 const lldb_private::Args &args, std::string hostname, lldb::pid_t &pid, in LaunchGDBServer() argument
212 pid = debugserver_launch_info.GetProcessID(); in LaunchGDBServer()
213 if (pid != LLDB_INVALID_PROCESS_ID) { in LaunchGDBServer()
215 m_spawned_pids.insert(pid); in LaunchGDBServer()
217 m_port_map.AssociatePortWithProcess(*port, pid); in LaunchGDBServer()
291 if (m_pending_gdb_server.pid == LLDB_INVALID_PROCESS_ID) in Handle_qQueryGDBServer()
316 lldb::pid_t pid = packet.GetU64(LLDB_INVALID_PROCESS_ID); in Handle_qKillSpawnedProcess() local
321 if (m_spawned_pids.find(pid) == m_spawned_pids.end()) { in Handle_qKillSpawnedProcess()
328 if (KillSpawnedProcess(pid)) in Handle_qKillSpawnedProcess()
334 bool GDBRemoteCommunicationServerPlatform::KillSpawnedProcess(lldb::pid_t pid) { in KillSpawnedProcess() argument
338 if (m_spawned_pids.find(pid) == m_spawned_pids.end()) in KillSpawnedProcess()
343 Host::Kill(pid, SIGTERM); in KillSpawnedProcess()
349 if (m_spawned_pids.find(pid) == m_spawned_pids.end()) { in KillSpawnedProcess()
359 if (m_spawned_pids.find(pid) == m_spawned_pids.end()) in KillSpawnedProcess()
365 Host::Kill(pid, SIGKILL); in KillSpawnedProcess()
370 if (m_spawned_pids.find(pid) == m_spawned_pids.end()) { in KillSpawnedProcess()
381 if (m_spawned_pids.find(pid) == m_spawned_pids.end()) in KillSpawnedProcess()
392 lldb::pid_t pid = m_process_launch_info.GetProcessID(); in Handle_qProcessInfo() local
395 if (pid == LLDB_INVALID_PROCESS_ID) in Handle_qProcessInfo()
399 if (!Host::GetProcessInfo(pid, proc_info)) in Handle_qProcessInfo()
472 lldb::pid_t pid = m_process_launch_info.GetProcessID(); in Handle_qC() local
475 response.Printf("QC%" PRIx64, pid); in Handle_qC()
484 if (pid != LLDB_INVALID_PROCESS_ID) { in Handle_qC()
520 lldb::pid_t pid) { in DebugserverProcessReaped() argument
522 m_port_map.FreePortForProcess(pid); in DebugserverProcessReaped()
523 m_spawned_pids.erase(pid); in DebugserverProcessReaped()
551 const auto pid = m_process_launch_info.GetProcessID(); in LaunchProcess() local
552 if (pid != LLDB_INVALID_PROCESS_ID) { in LaunchProcess()
555 m_spawned_pids.insert(pid); in LaunchProcess()
599 lldb::pid_t pid, uint16_t port, const std::string &socket_name) { in SetPendingGdbServer() argument
600 m_pending_gdb_server.pid = pid; in SetPendingGdbServer()