summaryrefslogtreecommitdiffstats
path: root/libs/binder
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2010-09-24 11:16:23 -0700
committerDianne Hackborn <hackbod@google.com>2010-09-24 13:11:55 -0700
commitf123e49bf0708719b51a7064ae134c097abe4a54 (patch)
tree73c218afbbede522ca5c7d70b1399cf55609ca5d /libs/binder
parent6d8fae722cfb2833dd542b2a5e613582a9096fc6 (diff)
downloadframeworks_base-f123e49bf0708719b51a7064ae134c097abe4a54.zip
frameworks_base-f123e49bf0708719b51a7064ae134c097abe4a54.tar.gz
frameworks_base-f123e49bf0708719b51a7064ae134c097abe4a54.tar.bz2
Some debugging support.
- New feature to "am monitor" to have it automatically launch gdbserv for you when a crash/ANR happens, and tell you how to run the client. - Update dumpstate to match new location of binder debug logs - Various commented out logs that are being used to track down issues. Change-Id: Ia5dd0cd2df983a1fc6be697642a4590aa02a26a5
Diffstat (limited to 'libs/binder')
-rw-r--r--libs/binder/IPCThreadState.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/libs/binder/IPCThreadState.cpp b/libs/binder/IPCThreadState.cpp
index a3e117f..13c58f0 100644
--- a/libs/binder/IPCThreadState.cpp
+++ b/libs/binder/IPCThreadState.cpp
@@ -517,12 +517,26 @@ status_t IPCThreadState::transact(int32_t handle,
}
if ((flags & TF_ONE_WAY) == 0) {
+ #if 0
+ if (code == 4) { // relayout
+ LOGI(">>>>>> CALLING transaction 4");
+ } else {
+ LOGI(">>>>>> CALLING transaction %d", code);
+ }
+ #endif
if (reply) {
err = waitForResponse(reply);
} else {
Parcel fakeReply;
err = waitForResponse(&fakeReply);
}
+ #if 0
+ if (code == 4) { // relayout
+ LOGI("<<<<<< RETURNING transaction 4");
+ } else {
+ LOGI("<<<<<< RETURNING transaction %d", code);
+ }
+ #endif
IF_LOG_TRANSACTIONS() {
TextOutput::Bundle _b(alog);