summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2015-10-20 17:38:49 +0000
committerZachary Turner <zturner@google.com>2015-10-20 17:38:49 +0000
commit32064024b93d7d0b5225ac576b7684f604c352bf (patch)
tree90735d08ed9c5e80a9d01ad590becd9f8dea30d8 /lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp
parentcffe8caed3d1c5ba85948d70efa5bee24dd2f334 (diff)
downloadbcm5719-llvm-32064024b93d7d0b5225ac576b7684f604c352bf.tar.gz
bcm5719-llvm-32064024b93d7d0b5225ac576b7684f604c352bf.zip
Fix potential file i/o problem with python handles.
llvm-svn: 250838
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp')
-rw-r--r--lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp b/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp
index a5f9b8fc48d..9efed0ad45a 100644
--- a/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp
+++ b/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp
@@ -605,6 +605,11 @@ PythonDictionary::CreateStructuredDictionary() const
return result;
}
+PythonFile::PythonFile()
+ : PythonObject()
+{
+}
+
PythonFile::PythonFile(File &file, const char *mode)
{
Reset(file, mode);
OpenPOWER on IntegriCloud