android_gdbserver: Don't fail when trying to locate nonexistent files
Without '-x', exit codes of remote commands are forwarded to the host, causing the shell script to terminate early. Change-Id: I4cd8357277e22cc6d616d31bc83ba228eb8c2940 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/241363 Reviewed-by: Brian Salomon <bsalomon@google.com> Commit-Queue: Brian Osman <brianosman@google.com>
This commit is contained in:
parent
6447a1a777
commit
3bd566ee5c
@ -49,7 +49,7 @@ for library_file in \
|
||||
libEGL.so \
|
||||
libGLESv2.so \
|
||||
; do
|
||||
ANDROID_LS=`$ADB $DEVICE_SERIAL shell ls -ld ${SYSTEM_LIBRARY_PATH}/${library_file}`
|
||||
ANDROID_LS=`$ADB $DEVICE_SERIAL shell -x ls -ld ${SYSTEM_LIBRARY_PATH}/${library_file}`
|
||||
if [ "${ANDROID_LS:0:1}" == "-" ]; then
|
||||
adb_pull_if_needed "${SYSTEM_LIBRARY_PATH}/${library_file}" $GDB_TMP_DIR
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user