Allow gdbrunner.start_gdbserver to not upload gdbserver.
Change-Id: I59239c3989ccd91755407e65b0d2f8183482564c
This commit is contained in:
@@ -144,7 +144,7 @@ def start_gdbserver(device, gdbserver_local_path, gdbserver_remote_path,
|
|||||||
|
|
||||||
Args:
|
Args:
|
||||||
device: ADB device to start gdbserver on.
|
device: ADB device to start gdbserver on.
|
||||||
gdbserver_local_path: Host path to push gdbserver from.
|
gdbserver_local_path: Host path to push gdbserver from, can be None.
|
||||||
gdbserver_remote_path: Device path to push gdbserver to.
|
gdbserver_remote_path: Device path to push gdbserver to.
|
||||||
target_pid: PID of device process to attach to.
|
target_pid: PID of device process to attach to.
|
||||||
run_cmd: Command to run on the device.
|
run_cmd: Command to run on the device.
|
||||||
@@ -159,7 +159,8 @@ def start_gdbserver(device, gdbserver_local_path, gdbserver_remote_path,
|
|||||||
assert target_pid is None or run_cmd is None
|
assert target_pid is None or run_cmd is None
|
||||||
|
|
||||||
# Push gdbserver to the target.
|
# Push gdbserver to the target.
|
||||||
device.push(gdbserver_local_path, gdbserver_remote_path)
|
if gdbserver_local_path is not None:
|
||||||
|
device.push(gdbserver_local_path, gdbserver_remote_path)
|
||||||
|
|
||||||
# Run gdbserver.
|
# Run gdbserver.
|
||||||
gdbserver_cmd = [gdbserver_remote_path, "--once",
|
gdbserver_cmd = [gdbserver_remote_path, "--once",
|
||||||
|
|||||||
Reference in New Issue
Block a user