This is a second attempt at this, fixed up so it builds against python 3 and Windows.
original: https://reviews.llvm.org/D38829
Paths
| Differential D39128
Summary: SetOutputFileHandle doesn't work with IOBase ClosedPublic Authored by lawrence_danna on Oct 20 2017, 10:41 AM.
Details Summary This is a second attempt at this, fixed up so it builds against python 3 and Windows. original: https://reviews.llvm.org/D38829
Diff Detail
Event TimelineComment Actions Mentioned earlier, but if at all possible I think it would be helpful to instead of trying to force this into the existing Host/File class, we should instead try to keep all of this in the PythonFile class. This seems like trying to drive a square nail into a round hole. Could PythonFile just inherit from IOObjectBase so that we can use it everywhere we would currently use a File?
Comment Actions I'll update this.
lawrence_danna marked 4 inline comments as done. Comment Actions
Comment Actions I'll check this in for Larry. I'm going to change the Flush methods to FlushDebuggerOutputHandles to make it clearer what they are doing. This revision is now accepted and ready to land.Nov 1 2017, 7:43 PM Closed by commit rL317182: Commit Lawrence D'Anna's patch to change (authored by jmolenda). · Explain WhyNov 1 2017, 7:43 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 121231 lldb/trunk/include/lldb/API/SBDebugger.h
lldb/trunk/include/lldb/Core/Debugger.h
lldb/trunk/include/lldb/Host/File.h
lldb/trunk/packages/Python/lldbsuite/test/python_api/file_handle/TestFileHandle.py
lldb/trunk/scripts/interface/SBDebugger.i
lldb/trunk/source/API/SBDebugger.cpp
lldb/trunk/source/Core/Debugger.cpp
lldb/trunk/source/Host/common/File.cpp
lldb/trunk/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h
lldb/trunk/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp
lldb/trunk/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.h
lldb/trunk/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
|