summaryrefslogtreecommitdiff
path: root/android/README
diff options
context:
space:
mode:
authorChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2015-10-14 02:32:57 +0200
committerChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2015-10-14 02:32:57 +0200
commit78cf4ca4405d33d3f658da0d7f209afc8e6ee4a7 (patch)
tree389619b8ea7603f7da1839d4391a528ce46e208e /android/README
parent2511a21841dd9dec735a53add8174e47d24deb88 (diff)
make ndk-gdb work again
it hardcodes so much :-( Change-Id: Id86c2bcbf5936f3ab292e87210b967e2331c9435
Diffstat (limited to 'android/README')
-rw-r--r--android/README23
1 files changed, 16 insertions, 7 deletions
diff --git a/android/README b/android/README
index 513444c9754e..8f40d5a47336 100644
--- a/android/README
+++ b/android/README
@@ -198,16 +198,25 @@ Building with all symbols is also possible but the linking is currently
slow (around 10 to 15 minutes) and you need lots of memory (around 16GB + some
swap).
-You also want to avoid --with-android-package-name (or when you use
-that, you must set it to "org.libreoffice"), otherwise ndk-gdb will complain:
-
- ERROR: Could not extract package's data directory. Are you sure that
- your installed application is debuggable?
-
When you have all this, install the .apk to the device, and:
cd android/source
- <android-ndk-r10d>/ndk-gdb --adb=<android-sdk-linux>/platform-tools/adb --start
+ <ndk-bundle>/ndk-gdb --adb=<android-sdk-linux>/platform-tools/adb [--start]
+
+In case you used --with-android-package-name, add --package=your.package.name
+to the invocation
+
+If you get the error
+
+ ERROR: Could not find gdb.setup under ./libs/
+
+(and an empty "Compatible device ABI:" when run with --verbose), you need to fix
+the quoting in the ndk-gdb script:
+
+@@ -574 +574 @@
+-adb_var_shell BCFILES run-as $PACKAGE_NAME /system/bin/sh -c "ls lib/*.bc"
++adb_var_shell BCFILES run-as $PACKAGE_NAME /system/bin/sh -c \"ls lib/*.bc\"
+
Pretty printers aren't loaded automatically due to the single shared
object, but you can still load them manually. E.g. to have a pretty-printer for