Lines Matching defs:m_pid

523     : m_pid(0), m_cpu_type(0), m_child_stdin(-1), m_child_stdout(-1),
572 m_pid = ::getpid();
574 m_pid = pid;
575 return m_pid; // Return actually PID in case a zero pid was passed in
1248 if (m_cpu_type == 0 && m_pid != 0)
1249 m_cpu_type = MachProcess::GetCPUTypeForLocalProcess(m_pid);
1330 m_pid = INVALID_NUB_PROCESS;
1546 DNBLog("Sending ptrace PT_KILL to terminate inferior process pid %d.", m_pid);
1547 ::ptrace(PT_KILL, m_pid, 0, 0);
1553 m_pid, err.Status(), err.AsString());
1641 m_pid);
1642 if (m_pid == INVALID_NUB_PROCESS)
1740 nub_process_t pid = m_pid;
2316 if (m_pid != 0) {
2363 MachProcess::GetCPUTypeForLocalProcess(m_pid);
2818 m_pid = pid;
2828 m_pid = INVALID_NUB_PROCESS;
2857 return m_pid;
2871 err.AsString(), m_pid);
2889 return m_activities.GetGenealogyInfoForThread(m_pid, tid, m_thread_list,
3366 m_pid = MachProcess::ForkChildForPTraceDebugging(path, argv, envp, this,
3377 return m_pid; // A successful SBLaunchForDebug() returns and assigns a
3378 // non-zero m_pid.
3391 return m_pid; // A successful SBLaunchForDebug() returns and assigns a
3392 // non-zero m_pid.
3403 return m_pid; // A successful SBLaunchForDebug() returns and assigns a
3404 // non-zero m_pid.
3412 m_pid = MachProcess::PosixSpawnChildForPTraceDebugging(
3424 if (m_pid == INVALID_NUB_PROCESS) {
3442 ::ptrace(PT_KILL, m_pid, 0, 0);
3443 m_pid = INVALID_NUB_PROCESS;
3454 getpid(), m_pid);
3455 int err = ::ptrace(PT_ATTACHEXC, m_pid, 0, 0);
3458 getpid(), m_pid, err);
3461 DNBLogThreadedIf(LOG_PROCESS, "successfully spawned pid %d", m_pid);
3468 m_pid, err, ptrace_err.Status(),
3475 m_pid);
3482 return m_pid;
3821 m_pid = MachProcess::SBForkChildForPTraceDebugging(path, argv, envp, no_stdio,
3823 if (m_pid != 0) {
3836 ::ptrace(PT_KILL, m_pid, 0, 0);
3837 m_pid = INVALID_NUB_PROCESS;
3844 m_pid);
3845 int err = ::ptrace(PT_ATTACHEXC, m_pid, 0, 0);
3847 getpid(), m_pid, err);
3850 DNBLogThreadedIf(LOG_PROCESS, "successfully attached to pid %d", m_pid);
3855 m_pid);
3857 DNBLogThreadedIf(LOG_PROCESS, "error: failed to attach to pid %d", m_pid);
3860 return m_pid;
4041 m_pid = BoardServiceForkChildForPTraceDebugging(
4043 if (m_pid != 0) {
4058 getpid(), m_pid);
4059 ::ptrace(PT_KILL, m_pid, 0, 0);
4060 m_pid = INVALID_NUB_PROCESS;
4067 m_pid);
4068 int err = ::ptrace(PT_ATTACHEXC, m_pid, 0, 0);
4070 getpid(), m_pid, err);
4073 DNBLog("[LaunchAttach] successfully attached to pid %d", m_pid);
4076 errmsg += std::to_string(m_pid);
4081 getpid(), m_pid);
4084 return m_pid;
4388 if (m_pid == 0)
4396 if (!found_app_flavor && IsFBSProcess(m_pid)) {
4402 if (!found_app_flavor && IsBKSProcess(m_pid)) {