Index: build/android/adb_gdb |
diff --git a/build/android/adb_gdb b/build/android/adb_gdb |
index 93bb317c713ded7574b0da8259fab592028cca0f..19989634b5a9be1bb72e00839c769f6b65ce9495 100755 |
--- a/build/android/adb_gdb |
+++ b/build/android/adb_gdb |
@@ -320,6 +320,7 @@ Valid options: |
--su-prefix=<prefix> Prepend <prefix> to 'adb shell' commands that are |
run by this script. This can be useful to use |
the 'su' program on rooted production devices. |
+ e.g. --su-prefix="su -c" |
--pull-libs Force system libraries extraction. |
--no-pull-libs Do not extract any system library. |
@@ -852,7 +853,7 @@ if [ "$SU_PREFIX" ]; then |
cat $SU_PREFIX_TEST_LOG |
exit 1 |
fi |
- COMMAND_PREFIX=$SU_PREFIX |
+ COMMAND_PREFIX="$SU_PREFIX" |
else |
SHELL_UID=$(adb shell cat /proc/self/status | \ |
awk '$1 == "Uid:" { print $2; }') |