Lines Matching refs:m_pid

513     : m_pid(0), m_cpu_type(0), m_child_stdin(-1), m_child_stdout(-1),  function
559 m_pid = ::getpid();
561 m_pid = pid;
562 return m_pid; // Return actually PID in case a zero pid was passed in
1288 if (m_cpu_type == 0 && m_pid != 0)
1289 m_cpu_type = MachProcess::GetCPUTypeForLocalProcess(m_pid);
1370 m_pid = INVALID_NUB_PROCESS;
1455 DNBLog("Sending ptrace PT_KILL to terminate inferior process pid %d.", m_pid);
1456 ::ptrace(PT_KILL, m_pid, 0, 0);
1462 m_pid, err.Status(), err.AsString());
1550 m_pid);
1551 if (m_pid == INVALID_NUB_PROCESS)
1649 nub_process_t pid = m_pid;
2225 if (m_pid != 0) {
2272 MachProcess::GetCPUTypeForLocalProcess(m_pid);
2648 m_pid = pid;
2658 m_pid = INVALID_NUB_PROCESS;
2687 return m_pid;
2714 return m_activities.GetGenealogyInfoForThread(m_pid, tid, m_thread_list,
3171 m_pid = MachProcess::ForkChildForPTraceDebugging(path, argv, envp, this,
3182 return m_pid; // A successful SBLaunchForDebug() returns and assigns a
3183 // non-zero m_pid.
3196 return m_pid; // A successful SBLaunchForDebug() returns and assigns a
3197 // non-zero m_pid.
3208 return m_pid; // A successful SBLaunchForDebug() returns and assigns a
3209 // non-zero m_pid.
3217 m_pid = MachProcess::PosixSpawnChildForPTraceDebugging(
3229 if (m_pid == INVALID_NUB_PROCESS) {
3247 ::ptrace(PT_KILL, m_pid, 0, 0);
3248 m_pid = INVALID_NUB_PROCESS;
3259 getpid(), m_pid);
3260 int err = ::ptrace(PT_ATTACHEXC, m_pid, 0, 0);
3263 getpid(), m_pid, err);
3266 DNBLogThreadedIf(LOG_PROCESS, "successfully spawned pid %d", m_pid);
3273 m_pid, err, ptrace_err.Status(),
3281 return m_pid;
3620 m_pid = MachProcess::SBForkChildForPTraceDebugging(path, argv, envp, no_stdio,
3622 if (m_pid != 0) {
3635 ::ptrace(PT_KILL, m_pid, 0, 0);
3636 m_pid = INVALID_NUB_PROCESS;
3643 m_pid);
3644 int err = ::ptrace(PT_ATTACHEXC, m_pid, 0, 0);
3646 getpid(), m_pid, err);
3649 DNBLogThreadedIf(LOG_PROCESS, "successfully attached to pid %d", m_pid);
3652 DNBLogThreadedIf(LOG_PROCESS, "error: failed to attach to pid %d", m_pid);
3655 return m_pid;
3836 m_pid = BoardServiceForkChildForPTraceDebugging(
3838 if (m_pid != 0) {
3853 getpid(), m_pid);
3854 ::ptrace(PT_KILL, m_pid, 0, 0);
3855 m_pid = INVALID_NUB_PROCESS;
3862 m_pid);
3863 int err = ::ptrace(PT_ATTACHEXC, m_pid, 0, 0);
3865 getpid(), m_pid, err);
3868 DNBLog("[LaunchAttach] successfully attached to pid %d", m_pid);
3872 getpid(), m_pid);
3875 return m_pid;
4179 if (m_pid == 0)
4187 if (!found_app_flavor && IsFBSProcess(m_pid)) {
4193 if (!found_app_flavor && IsBKSProcess(m_pid)) {