diff options
author | Ryan Long <ryan.long@oarcorp.com> | 2021-08-11 16:13:14 -0400 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2021-08-13 14:01:45 -0500 |
commit | dc5e1fcdb10aae866894803192475b8177544001 (patch) | |
tree | 43094984213d662fec126432d711380a79ef7ded /tester/covoar/GcovFunctionData.cc | |
parent | GcovData.cc: Add ostream_guard (diff) | |
download | rtems-tools-dc5e1fcdb10aae866894803192475b8177544001.tar.bz2 |
GcovFunctionData.cc: Add ostream_guard
CID 1506205: Not restoring ostream format
Closes #4484
Diffstat (limited to 'tester/covoar/GcovFunctionData.cc')
-rw-r--r-- | tester/covoar/GcovFunctionData.cc | 3 |
1 files changed, 3 insertions, 0 deletions
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<uint32_t>::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 |