Lines Matching refs:pid
70 def get_tracer_pid(device: adb.AndroidDevice, pid: int | str | None) -> int:
71 if pid is None:
74 line, _ = device.shell(["grep", "-e", "^TracerPid:", "/proc/{}/status".format(pid)])
233 pid = None
240 pid = args.target_pid
243 pid = get_remote_pid(device, args.target_name)
259 assert pid is not None
261 binary_file, local = gdbrunner.find_binary(device, pid, sysroot,
264 sys.exit("failed to pull binary for PID {}".format(pid))
270 return (binary_file, pid, run_cmd)
483 pid = None
487 binary_file, pid, run_cmd = handle_switches(args, sysroot)
523 tracer_pid = get_tracer_pid(device, pid)
534 target_pid=pid, run_cmd=run_cmd, debug_socket=debug_socket,
538 "Connecting to tracing pid {} using local port {}".format(