summaryrefslogtreecommitdiff
path: root/android
diff options
context:
space:
mode:
authorTor Lillqvist <tlillqvist@suse.com>2011-12-22 12:34:26 +0200
committerTor Lillqvist <tlillqvist@suse.com>2011-12-22 15:45:33 +0200
commit6aac868d65c72d40b702435b0b5a570d73a4d430 (patch)
treec8b47947b05853840d7f379d3dfa9b42e2f3817e /android
parent28cb2ca7956cd79704089ad4ca7cedd3dc0c207f (diff)
Add comment about how to use the lo-strace "extra" (option)
Diffstat (limited to 'android')
-rw-r--r--android/Bootstrap/src/org/libreoffice/android/Bootstrap.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/android/Bootstrap/src/org/libreoffice/android/Bootstrap.java b/android/Bootstrap/src/org/libreoffice/android/Bootstrap.java
index 46ce235d3ad4..91f965e661d4 100644
--- a/android/Bootstrap/src/org/libreoffice/android/Bootstrap.java
+++ b/android/Bootstrap/src/org/libreoffice/android/Bootstrap.java
@@ -136,7 +136,14 @@ public class Bootstrap extends NativeActivity
return;
}
- // Tell lo-bootstrap to Start a strace on itself if requested
+ // Start a strace on ourself if requested.
+
+ // Note that the started strace will have its stdout and
+ // stderr connected to /dev/null, so you definitely want to
+ // specify an -o option in the lo-strace extra. Also, strace
+ // will trace only *this* thread, which is not the one that
+ // eventually will run android_main() and lo_main(), so you
+ // also want the -f option.
String strace_args = getIntent().getStringExtra("lo-strace");
if (strace_args != null)
system("/system/xbin/strace -p " + getpid() + " " + (strace_args != "yes" ? strace_args : "" ) + " &");