summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.h
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>2017-10-17 03:03:44 +0000
committerJason Molenda <jmolenda@apple.com>2017-10-17 03:03:44 +0000
commit695a1f6e6cf7f164b71c5ee9f1756374547114c9 (patch)
tree9621ad0c8eb1af0a097801896bbc34dc7433bdba /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.h
parent45623bd06dfc763241b82be152d0d01d7bb5cf32 (diff)
downloadbcm5719-llvm-695a1f6e6cf7f164b71c5ee9f1756374547114c9.tar.gz
bcm5719-llvm-695a1f6e6cf7f164b71c5ee9f1756374547114c9.zip
Committing this for Larry D'Anna:
This patch adds support for passing an arbitrary python stream (anything inheriting from IOBase) to SetOutputFileHandle or SetErrorFileHandle. Differential revision: https://reviews.llvm.org/D38829 <rdar://problem/34870417> llvm-svn: 315966
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.h')
-rw-r--r--lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.h b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.h
index a71fcea7519..ed200e4294e 100644
--- a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.h
+++ b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.h
@@ -541,12 +541,12 @@ protected:
bool GetEmbeddedInterpreterModuleObjects();
- bool SetStdHandle(File &file, const char *py_name, PythonFile &save_file,
+ bool SetStdHandle(File &file, const char *py_name, PythonObject &save_file,
const char *mode);
- PythonFile m_saved_stdin;
- PythonFile m_saved_stdout;
- PythonFile m_saved_stderr;
+ PythonObject m_saved_stdin;
+ PythonObject m_saved_stdout;
+ PythonObject m_saved_stderr;
PythonObject m_main_module;
PythonObject m_lldb_module;
PythonDictionary m_session_dict;
OpenPOWER on IntegriCloud