summaryrefslogtreecommitdiff
path: root/README.Android
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@suse.com>2012-01-20 12:08:01 +0000
committerMichael Meeks <michael.meeks@suse.com>2012-01-20 12:08:44 +0000
commit0eef5f6b501ca9d2fb105d276ef86c896671e9cc (patch)
treeb0c1606dfc7cd606e2b87bb5b297a3ce7dee653a /README.Android
parent4a4edda5fab3f01ae83e10d43e90f26ec0219530 (diff)
android: Add debugging tips
Diffstat (limited to 'README.Android')
-rw-r--r--README.Android16
1 files changed, 16 insertions, 0 deletions
diff --git a/README.Android b/README.Android
index 555f09374c2c..aae65317d78d 100644
--- a/README.Android
+++ b/README.Android
@@ -28,6 +28,22 @@ this point:
and continue onwards & upwards.
+* Debugging
+
+ Debugging is fun, the default NDK gdb (in v7) is busted, you
+need to download a new one from:
+
+ http://code.google.com/p/mingw-and-ndk/
+
+ Even this 'fixed' gdb is broken in the way that it can see
+symbols only for shlibs that were already loaded when the debuggee was
+attached, so you need to carefully guess where to put:
+
+ fprintf(stderr, "Sleeping NOW!\n"); ::sleep(20);
+
+ into the code; and when you see that in logcat, you have time
+to run: ndk-gdb and it will attach the process.
+
* Detailed explanation
Unit tests are the first thing we want to run on Android, to get some