Merge "gdbrunner: Make sure remote lldb-server has +x"

This commit is contained in:
Inseob Kim
2022-10-12 01:53:25 +00:00
committed by Gerrit Code Review

View File

@@ -171,6 +171,10 @@ def start_gdbserver(device, gdbserver_local_path, gdbserver_remote_path,
# Push gdbserver to the target.
if gdbserver_local_path is not None:
device.push(gdbserver_local_path, chroot + gdbserver_remote_path)
# If the user here is potentially on Windows, adb cannot inspect execute
# permissions. Since we don't know where the users are, chmod
# gdbserver_remote_path on device regardless.
device.shell(["chmod", "+x", gdbserver_remote_path])
# Run gdbserver.
gdbserver_cmd = [gdbserver_remote_path]