Skip to content

Commit

Permalink
ndk-gdb.py: unbreak.
Browse files Browse the repository at this point in the history
This was working for me because of a local hack in adb.py in a separate
checkout, which was being brought in via PYTHONPATH. :-(

Bug: android/ndk#118
Change-Id: Idecbe9b1a2e914599f1c062883fe1fd72eb320f0
  • Loading branch information
jmgao committed Jun 10, 2016
1 parent 9e476a4 commit fe0e7c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ndk-gdb.py
Expand Up @@ -400,7 +400,7 @@ def get_gdbserver_path(args, package_name, app_data_dir, arch):
destination = "{}/{}-gdbserver".format(app_data_dir, arch)
log("Copying gdbserver to {}.".format(destination))
cmd = ["cat", remote_path, "|", "run-as", package_name,
"sh", "-c", "cat > {}".format(destination)]
"sh", "-c", "'cat > {}'".format(destination)]
(rc, _, _) = args.device.shell_nocheck(cmd)
if rc != 0:
error("Failed to copy gdbserver to {}.".format(destination))
Expand Down

0 comments on commit fe0e7c0

Please sign in to comment.