diff --git a/compiler-rt/lib/asan/asan_rtl.cpp b/compiler-rt/lib/asan/asan_rtl.cpp index cbbdcf7914b0a149e847e753abbee8fd35cf4afb..c677280f48d32dc3ed716150f98e919b81f450d1 100644 --- a/compiler-rt/lib/asan/asan_rtl.cpp +++ b/compiler-rt/lib/asan/asan_rtl.cpp @@ -49,8 +49,10 @@ static void AsanDie() { internal_sched_yield(); } } - if (common_flags()->print_module_map >= 1) + if (common_flags()->print_module_map >= 1) { DumpProcessMap(); + Report("End Asan report (AsanDie)\n"); // OHOS_LOCAL + } WaitForDebugger(flags()->sleep_before_dying, "before dying"); @@ -63,7 +65,6 @@ static void AsanDie() { UnmapOrDie((void*)kLowShadowBeg, kHighShadowEnd - kLowShadowBeg); } } - Report("End Asan report (AsanDie)\n"); // OHOS_LOCAL } static void CheckUnwind() { diff --git a/compiler-rt/lib/ubsan/ubsan_init.cpp b/compiler-rt/lib/ubsan/ubsan_init.cpp index 54ff2b450519ff65310719fb1bb3f83e49f90848..ed87ea7cdc56518b0507d5bf3ab0eb0b58ef4edb 100644 --- a/compiler-rt/lib/ubsan/ubsan_init.cpp +++ b/compiler-rt/lib/ubsan/ubsan_init.cpp @@ -35,9 +35,10 @@ static void CommonInit() { } static void UbsanDie() { - if (common_flags()->print_module_map >= 1) + if (common_flags()->print_module_map >= 1) { DumpProcessMap(); - Report("End CFI report (UbsanDie)\n"); // OHOS_LOCAL + Report("End CFI report (UbsanDie)\n"); // OHOS_LOCAL + } } static void CommonStandaloneInit() {