Commit Lawrence D'Anna's patch to change
authorJason Molenda <jmolenda@apple.com>
Thu, 2 Nov 2017 02:43:27 +0000 (02:43 +0000)
committerJason Molenda <jmolenda@apple.com>
Thu, 2 Nov 2017 02:43:27 +0000 (02:43 +0000)
commitedc2def4a65764991ffb50e9c9af1c740ced534c
tree1956183f5d71079fc4d2e3503a5e892c8d27dbda
parent9e27b70a07c35880da49619bd85ce47cb327fb02
Commit Lawrence D'Anna's patch to change
SetOututFileHandle to work with IOBase.

I did make one change after checking with Larry --
I renamed SBDebugger::Flush to FlushDebuggerOutputHandles
and added a short docstring to the .i file to make it
a little clearer under which context programs may need
to use this API.

Differential Revision: https://reviews.llvm.org/D39128
<rdar://problem/34870417>

llvm-svn: 317182
12 files changed:
lldb/include/lldb/API/SBDebugger.h
lldb/include/lldb/Core/Debugger.h
lldb/include/lldb/Host/File.h
lldb/packages/Python/lldbsuite/test/python_api/file_handle/TestFileHandle.py [new file with mode: 0644]
lldb/scripts/interface/SBDebugger.i
lldb/source/API/SBDebugger.cpp
lldb/source/Core/Debugger.cpp
lldb/source/Host/common/File.cpp
lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp
lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h
lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.h