diff options
author | Jan Holesovsky <kendy@collabora.com> | 2015-02-08 00:28:12 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-02-16 09:20:44 +0100 |
commit | 844ddc229ff4cd17d7a6f451bc29c127a2db8a1d (patch) | |
tree | cee01b1bccf68cff77708cbb4e815e1f0b116f04 /README.Android | |
parent | 17da98987411cf5a031e0bbdee3e8e5bcf874b83 (diff) |
android: Update README.Android with the recent ndk-gdb info.
Change-Id: I23d76562c85ff458bdc539a8ba0681a847e647c5
Diffstat (limited to 'README.Android')
-rw-r--r-- | README.Android | 30 |
1 files changed, 13 insertions, 17 deletions
diff --git a/README.Android b/README.Android index 98a109d8d07e..19f54f9985b7 100644 --- a/README.Android +++ b/README.Android @@ -46,7 +46,19 @@ know. But don't seem to be necessary on a real device anyway? * Debugging - Install the .apk to the device, and: + First of all, you need to configure the build with --enable-debug or +--enable-dbgutil. You may want to provide --enable-selective-debuginfo too, +like --enable-selective-debuginfo="sw/" or so, in order to fit into the memory +during linking. + + 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 +that + +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/experimental/LOAndroid3 <android-ndk-r10d>/ndk-gdb --adb=<android-sdk-linux>/platform-tools/adb --start @@ -55,22 +67,6 @@ know. But don't seem to be necessary on a real device anyway? and the "pending breakpoints do not work" problems are now resolved with the current NDK. -* Getting the symbols - -In order to be able to debug, you also need the symbols. Currently they are -stripped using a $(STRIP) call in android/Bootstrap/Makefile.shared ; make -sure you change it only to 'cp'. - -But then you need to limit the size of the resulting binary by other means, -that is strip most of the symbols (but the interesting ones) already during -the build. For that, use something like - ---enable-dbgutil ---enable-selective-debuginfo="sal/" - -in your autogen.input (but of course limit the --enable-selective-debuginfo -only to directories / libraries that are interesting to you). - * Common Errors / Gotchas lo_dlneeds: Could not read ELF header of /data/data/org.libreoffice...libfoo.so |