Commit 7e3cdbeb authored by Josh Gao's avatar Josh Gao
Browse files

ndk-gdb.py: fix library pulling.

Change-Id: I7213f3b47d12448fe1eeacf0743ee58d52fbfdf7
parent dc09de8f
......@@ -462,15 +462,16 @@ def pull_binaries(device, out_dir, is64bit):
library_path = "/system/lib"
for library in libraries:
posixpath.join(library_path, library)
required_files.append(posixpath.join(library_path, library))
for required_file in required_files:
local_name = os.path.join(out_dir, required_file)
dirname = os.path.dirname(required_file)
local_dirname = os.path.join(out_dir, dirname)
# os.path.join not used because joining absolute paths will pick the last one
local_path = os.path.realpath(out_dir + required_file)
local_dirname = os.path.dirname(local_path)
if not os.path.isdir(local_dirname):
os.makedirs(local_dirname)
device.pull(required_file, local_name)
log("Pulling '{}' to '{}'".format(required_file, local_path))
device.pull(required_file, local_path)
def generate_gdb_script(sysroot, binary_path, is64bit, port,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment