summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>2017-11-02 02:43:27 +0000
committerJason Molenda <jmolenda@apple.com>2017-11-02 02:43:27 +0000
commitedc2def4a65764991ffb50e9c9af1c740ced534c (patch)
tree1956183f5d71079fc4d2e3503a5e892c8d27dbda /lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h
parent9e27b70a07c35880da49619bd85ce47cb327fb02 (diff)
downloadbcm5719-llvm-edc2def4a65764991ffb50e9c9af1c740ced534c.tar.gz
bcm5719-llvm-edc2def4a65764991ffb50e9c9af1c740ced534c.zip
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
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h')
-rw-r--r--lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h b/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h
index beeb6478236..60e1337b702 100644
--- a/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h
+++ b/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h
@@ -113,6 +113,8 @@ public:
Reset(PyRefType::Borrowed, rhs.m_py_obj);
}
+ operator PyObject*() const { return m_py_obj; }
+
// PythonObject is implicitly convertible to PyObject *, which will call the
// wrong overload. We want to explicitly disallow this, since a PyObject
// *always* owns its reference. Therefore the overload which takes a
OpenPOWER on IntegriCloud