Lines Matching refs:args
203 def handle_switches(args, sysroot): argument
215 device = args.device
220 args.su_cmd = ["su", args.user] if args.user else []
222 if args.target_pid:
224 pid = args.target_pid
225 elif args.target_name:
227 pid = get_remote_pid(device, args.target_name)
228 elif args.run_cmd:
229 if not args.run_cmd[0]:
231 run_cmd = args.run_cmd
234 run_cmd[0] = gdbrunner.find_executable_path(device, args.run_cmd[0],
235 run_as_cmd=args.su_cmd)
238 "please provide an absolute path.".format(args.run_cmd[0]))
241 run_as_cmd=args.su_cmd)
246 run_as_cmd=args.su_cmd)
392 args = parse_args()
393 device = args.device
409 binary_file, pid, run_cmd = handle_switches(args, sysroot)
431 use_lldb = args.lldb
433 cmd_prefix = args.su_cmd
434 if args.env:
435 cmd_prefix += ['env'] + [v[0] for v in args.env]
450 port=args.port, run_as_cmd=cmd_prefix, lldb=use_lldb)
454 tracer_pid, args.port))
455 gdbrunner.forward_gdbserver_port(device, local=args.port,
456 remote="tcp:{}".format(args.port))
464 debugger = args.setup_forwarding or "gdb"
472 port=args.port,
475 if use_lldb or not args.setup_forwarding:
485 if args.setup_forwarding == "vscode":