Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
halo
ndk
Commits
7e3cdbeb
Commit
7e3cdbeb
authored
9 years ago
by
Josh Gao
Browse files
Options
Download
Email Patches
Plain Diff
ndk-gdb.py: fix library pulling.
Change-Id: I7213f3b47d12448fe1eeacf0743ee58d52fbfdf7
parent
dc09de8f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
ndk-gdb.py
ndk-gdb.py
+6
-5
No files found.
ndk-gdb.py
View file @
7e3cdbeb
...
...
@@ -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
,
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment