diff options
author | Ryan Long <ryan.long@oarcorp.com> | 2021-08-11 16:11:51 -0400 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2021-08-13 14:01:45 -0500 |
commit | 415a2b629dceaa5abdf14ae200bceb3e0c32dca5 (patch) | |
tree | a7b9ba6aa20ef95d8f6dda9696b80ccfa369ad10 | |
parent | GcovFunctionData:h: Fix formatting (diff) | |
download | rtems-tools-415a2b629dceaa5abdf14ae200bceb3e0c32dca5.tar.bz2 |
GcovData.cc: Add ostream_guard
CID 1506202: Not restoring ostream format
Closes #4483
-rw-r--r-- | tester/covoar/GcovData.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tester/covoar/GcovData.cc b/tester/covoar/GcovData.cc index 02e7489..d4acfa4 100644 --- a/tester/covoar/GcovData.cc +++ b/tester/covoar/GcovData.cc @@ -16,6 +16,7 @@ //#include "CoverageMap.h" //#include "qemu-traces.h" +#include "rtems-utils.h" namespace Gcov { @@ -401,6 +402,8 @@ namespace Gcov { { int length; + rtems::utils::ostream_guard old_state( std::cerr ); + length = sizeof( gcov_preamble ); gcovFile.read( (char *) &preamble, 4 * sizeof( gcov_preamble ) ); if ( gcovFile.gcount() != 4 * sizeof( gcov_preamble ) ) { |