[PATCH 1/3] GcovData.cc: Add ostream_guard
Ryan Long
ryan.long at oarcorp.com
Wed Aug 11 21:09:51 UTC 2021
CID 1506202: Not restoring ostream format
Closes #4483
---
tester/covoar/GcovData.cc | 3 +++
1 file changed, 3 insertions(+)
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 ) ) {
--
1.8.3.1
More information about the devel
mailing list