Binder: Log details of pending exception.
This was accidentally removed by changed64abfcf93. Test: manual; verify exception trace is printed in logs. Bug: 36813403 Bug: 37435516 Change-Id: I73ae8de167c457d56fddb85943a8f08f8913f0f7 (cherry picked from commitccc9fad9e6)
This commit is contained in:
committed by
Andreas Gampe
parent
83a24af545
commit
cfd0f9beee
@@ -193,10 +193,10 @@ static void report_exception(JNIEnv* env, jthrowable excep, const char* msg)
|
||||
if (env->IsInstanceOf(excep, gErrorOffsets.mClass)) {
|
||||
/*
|
||||
* It's an Error: Reraise the exception and ask the runtime to abort.
|
||||
* This will dump the pending exception as well as all thread traces
|
||||
* to the log.
|
||||
*/
|
||||
env->Throw(excep);
|
||||
ALOGE("java.lang.Error thrown during binder transaction (stack trace follows) : ");
|
||||
env->ExceptionDescribe();
|
||||
env->FatalError("java.lang.Error thrown during binder transaction.");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user