summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lldb/include/lldb/Utility/Reproducer.h1
-rw-r--r--lldb/include/lldb/Utility/ReproducerInstrumentation.h4
2 files changed, 4 insertions, 1 deletions
diff --git a/lldb/include/lldb/Utility/Reproducer.h b/lldb/include/lldb/Utility/Reproducer.h
index 14b9309f16d..60e6ffe65a5 100644
--- a/lldb/include/lldb/Utility/Reproducer.h
+++ b/lldb/include/lldb/Utility/Reproducer.h
@@ -126,6 +126,7 @@ public:
m_os << t;
if (newline)
m_os << '\n';
+ m_os.flush();
}
const FileSpec &GetFilename() { return m_filename; }
diff --git a/lldb/include/lldb/Utility/ReproducerInstrumentation.h b/lldb/include/lldb/Utility/ReproducerInstrumentation.h
index 6835e8e52ef..f90ce4bc767 100644
--- a/lldb/include/lldb/Utility/ReproducerInstrumentation.h
+++ b/lldb/include/lldb/Utility/ReproducerInstrumentation.h
@@ -542,7 +542,9 @@ public:
SerializeAll(tail...);
}
- void SerializeAll() {}
+ void SerializeAll() {
+ m_stream.flush();
+ }
private:
/// Serialize pointers. We need to differentiate between pointers to
OpenPOWER on IntegriCloud