From dc5e1fcdb10aae866894803192475b8177544001 Mon Sep 17 00:00:00 2001 From: Ryan Long Date: Wed, 11 Aug 2021 16:13:14 -0400 Subject: GcovFunctionData.cc: Add ostream_guard CID 1506205: Not restoring ostream format Closes #4484 --- tester/covoar/GcovFunctionData.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tester/covoar/GcovFunctionData.cc b/tester/covoar/GcovFunctionData.cc index aec04ce..4db5eba 100644 --- a/tester/covoar/GcovFunctionData.cc +++ b/tester/covoar/GcovFunctionData.cc @@ -13,6 +13,7 @@ #include "ObjdumpProcessor.h" #include "CoverageMapBase.h" #include "DesiredSymbols.h" +#include "rtems-utils.h" namespace Gcov { @@ -367,6 +368,8 @@ namespace Gcov { { std::list::iterator line; + rtems::utils::ostream_guard old_state( textFile ); + textFile << " > BLOCK " << std::setw( 3 ) << block->id << " from " << block->sourceFileName << std::endl << " -counter: " << std::setw( 5 ) << block->counter -- cgit v1.2.3