summaryrefslogtreecommitdiffstats
path: root/tester/covoar/GcovData.cc
diff options
context:
space:
mode:
authorRyan Long <ryan.long@oarcorp.com>2021-08-11 16:11:51 -0400
committerJoel Sherrill <joel@rtems.org>2021-08-13 14:01:45 -0500
commit415a2b629dceaa5abdf14ae200bceb3e0c32dca5 (patch)
treea7b9ba6aa20ef95d8f6dda9696b80ccfa369ad10 /tester/covoar/GcovData.cc
parentGcovFunctionData:h: Fix formatting (diff)
downloadrtems-tools-415a2b629dceaa5abdf14ae200bceb3e0c32dca5.tar.bz2
GcovData.cc: Add ostream_guard
CID 1506202: Not restoring ostream format Closes #4483
Diffstat (limited to 'tester/covoar/GcovData.cc')
-rw-r--r--tester/covoar/GcovData.cc3
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 ) ) {