tombstoned: fix file creation for ANRs.

Bug: http://b/188315622
Test: manual
Change-Id: I2948b929beb3093b59c8d37b706c857e7422a3cc
Merged-In: I2948b929beb3093b59c8d37b706c857e7422a3cc
(cherry picked from commit 931274862fc55bc723ee72c0c989984c4ffb7776)
This commit is contained in:
Josh Gao 2021-05-18 16:14:15 -07:00
parent 1d14bd3c1a
commit 35a45b20c2
1 changed files with 2 additions and 2 deletions

View File

@ -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;