From 931274862fc55bc723ee72c0c989984c4ffb7776 Mon Sep 17 00:00:00 2001 From: Josh Gao Date: Tue, 18 May 2021 16:14:15 -0700 Subject: [PATCH] tombstoned: fix file creation for ANRs. Bug: http://b/188315622 Test: manual Change-Id: I2948b929beb3093b59c8d37b706c857e7422a3cc --- debuggerd/tombstoned/tombstoned.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debuggerd/tombstoned/tombstoned.cpp b/debuggerd/tombstoned/tombstoned.cpp index 0b87b7a08..05d805097 100644 --- a/debuggerd/tombstoned/tombstoned.cpp +++ b/debuggerd/tombstoned/tombstoned.cpp @@ -165,8 +165,7 @@ class CrashQueue { switch (dump_type) { case kDebuggerdNativeBacktrace: - case kDebuggerdJavaBacktrace: - // Don't generate tombstones for backtrace requests. + // Don't generate tombstones for native backtrace requests. return {}; case kDebuggerdTombstoneProto: @@ -178,6 +177,7 @@ class CrashQueue { result.text = create_temporary_file(); break; + case kDebuggerdJavaBacktrace: case kDebuggerdTombstone: result.text = create_temporary_file(); break;