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?
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 119734 include/lldb/API/SBDebugger.h
include/lldb/Core/Debugger.h
include/lldb/Host/File.h
packages/Python/lldbsuite/test/python_api/file_handle/TestFileHandle.py
scripts/interface/SBDebugger.i
source/API/SBDebugger.cpp
source/Core/Debugger.cpp
source/Host/common/File.cpp
source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h
source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp
source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.h
source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
|
How about just