Lines Matching refs:pid
37 def get_tracer_pid(device, pid): argument
38 if pid is None:
41 line, _ = device.shell(["grep", "-e", "^TracerPid:", "/proc/{}/status".format(pid)])
117 pid = None
124 pid = args.target_pid
127 pid = get_remote_pid(device, args.target_name)
143 assert pid is not None
145 binary_file, local = gdbrunner.find_binary(device, pid, sysroot,
148 sys.exit("failed to pull binary for PID {}".format(pid))
154 return (binary_file, pid, run_cmd)
234 pid = None
238 binary_file, pid, run_cmd = handle_switches(args, sysroot)
247 tracer_pid = get_tracer_pid(device, pid)
254 target_pid=pid, run_cmd=run_cmd, debug_socket=debug_socket,