summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp
diff options
context:
space:
mode:
authorMichal Gorny <mgorny@gentoo.org>2019-03-21 19:35:55 +0000
committerMichal Gorny <mgorny@gentoo.org>2019-03-21 19:35:55 +0000
commit2819136f0a3d75f3b6fefe5f962efdbf66e99c12 (patch)
treedaa3971def7f0d9e8d59169ca53d594b2940e62b /lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp
parentc56872589f1593eb0e6ccd9ee2c3e1be0c947e08 (diff)
downloadbcm5719-llvm-2819136f0a3d75f3b6fefe5f962efdbf66e99c12.tar.gz
bcm5719-llvm-2819136f0a3d75f3b6fefe5f962efdbf66e99c12.zip
[lldb] Add missing EINTR handling
Differential Revision: https://reviews.llvm.org/D59606 llvm-svn: 356703
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp')
-rw-r--r--lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp b/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp
index f82fe612f68..62421238fb0 100644
--- a/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp
+++ b/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp
@@ -21,6 +21,7 @@
#include "lldb/Utility/Stream.h"
#include "llvm/Support/ConvertUTF.h"
+#include "llvm/Support/Errno.h"
#include <stdio.h>
@@ -39,7 +40,7 @@ void StructuredPythonObject::Dump(Stream &s, bool pretty_print) const {
void PythonObject::Dump(Stream &strm) const {
if (m_py_obj) {
- FILE *file = ::tmpfile();
+ FILE *file = llvm::sys::RetryAfterSignal(nullptr, ::tmpfile);
if (file) {
::PyObject_Print(m_py_obj, file, 0);
const long length = ftell(file);
OpenPOWER on IntegriCloud