Home | History | Annotate | Download | only in source

Lines Matching defs:pid

38 // Global PID in case we get a signal and need to stop the process...
72 // We will need to start up the remote connection without a PID, get the
219 nub_process_t pid = DNBProcessLaunch (resolved_path,
232 g_pid = pid;
234 if (pid == INVALID_NUB_PROCESS && strlen (launch_err_str) > 0)
240 else if (pid == INVALID_NUB_PROCESS)
280 while (pid != INVALID_NUB_PROCESS)
283 DNBLogThreadedIf (LOG_RNB_EVENTS, "%s DNBProcessWaitForEvent (%4.4x, eEventProcessRunningStateChanged | eEventProcessStoppedStateChanged, true, INFINITE)...", __FUNCTION__, pid);
284 nub_event_t set_events = DNBProcessWaitForEvents (pid, eEventProcessRunningStateChanged | eEventProcessStoppedStateChanged, true, NULL);
285 DNBLogThreadedIf (LOG_RNB_EVENTS, "%s DNBProcessWaitForEvent (%4.4x, eEventProcessRunningStateChanged | eEventProcessStoppedStateChanged, true, INFINITE) => 0x%8.8x", __FUNCTION__, pid, set_events);
289 pid = INVALID_NUB_PROCESS;
290 g_pid = pid;
296 nub_state_t pid_state = DNBProcessGetState (pid);
297 DNBLogThreadedIf (LOG_RNB_EVENTS, "%s process %4.4x state changed (eEventProcessStateChanged): %s", __FUNCTION__, pid, DNBStateAsString(pid_state));
316 ctx.SetProcessID(pid);
321 pid = INVALID_NUB_PROCESS;
322 g_pid = pid;
327 DNBProcessResetEvents(pid, set_events);
342 RNBRunLoopLaunchAttaching (RNBRemote *remote, nub_process_t attach_pid, nub_process_t& pid)
346 DNBLogThreadedIf (LOG_RNB_MINIMAL, "%s Attaching to pid %i...", __FUNCTION__, attach_pid);
348 pid = DNBProcessAttach (attach_pid, NULL, err_str, sizeof(err_str));
349 g_pid = pid;
351 if (pid == INVALID_NUB_PROCESS)
360 ctx.SetProcessID(pid);
411 nub_process_t pid = ctx.ProcessID();
413 if (pid == INVALID_NUB_PROCESS)
415 DNBLogThreadedIf (LOG_RNB_MINIMAL, "#### %s error: pid invalid, exiting...", __FUNCTION__);
418 nub_state_t pid_state = DNBProcessGetState (pid);
446 bool pid_stop_count_changed = ctx.SetProcessStopCount(DNBProcessGetStopCount(pid));
666 // We were able to connect to the socket, now write our PID so whomever
754 RNBLogSTDERR (" %s host:port --attach=<pid>\n", DEBUGSERVER_PROGRAM_NAME);
755 RNBLogSTDERR (" %s /path/file --attach=<pid>\n", DEBUGSERVER_PROGRAM_NAME);
777 { "waitfor-interval", required_argument, NULL, 'i' }, // Time in usecs to wait between sampling the pid list when waiting for a process by name
907 RNBLogSTDERR ("error: invalid pid option '%s'\n", optarg);
1347 nub_process_t pid = DNBProcessAttachWait (waitfor_pid_name.c_str(), launch_flavor, ignore_existing, timeout_ptr, waitfor_interval, err_str, sizeof(err_str));
1348 g_pid = pid;
1350 if (pid == INVALID_NUB_PROCESS)
1360 ctx.SetProcessID(pid);
1387 nub_process_t pid = DNBProcessAttachByName (attach_pid_name.c_str(), timeout_ptr, err_str, sizeof(err_str));
1388 g_pid = pid;
1389 if (pid == INVALID_NUB_PROCESS)
1399 ctx.SetProcessID(pid);
1406 RNBLogSTDERR ("error: asked to attach with empty name and invalid PID.\n");