summaryrefslogtreecommitdiffstats
path: root/lldb/scripts/Python/python-extensions.swig
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2020-01-07 13:23:52 -0800
committerJonas Devlieghere <jonas@devlieghere.com>2020-01-07 13:43:40 -0800
commit06d122bc4236bf0d049eab72d883c98cfc2a9901 (patch)
tree96d3b9af14aad7457fec50edaa00c59ec6b1eb75 /lldb/scripts/Python/python-extensions.swig
parent52366088a8e42c2f1e96e8430b84b8b65ec3f7bc (diff)
downloadbcm5719-llvm-06d122bc4236bf0d049eab72d883c98cfc2a9901.tar.gz
bcm5719-llvm-06d122bc4236bf0d049eab72d883c98cfc2a9901.zip
Re-land "[lldb/Lua] Add string conversion operator for SBTarget."
Extend the SBTarget class with a string conversion operator and reuse the same code between Python and Lua. This should happen for all the SB classes, but I'm doing just this one as an example and for use in a test case.
Diffstat (limited to 'lldb/scripts/Python/python-extensions.swig')
-rw-r--r--lldb/scripts/Python/python-extensions.swig12
1 files changed, 0 insertions, 12 deletions
diff --git a/lldb/scripts/Python/python-extensions.swig b/lldb/scripts/Python/python-extensions.swig
index c10c32b4487..51b7e477911 100644
--- a/lldb/scripts/Python/python-extensions.swig
+++ b/lldb/scripts/Python/python-extensions.swig
@@ -502,18 +502,6 @@
}
%extend lldb::SBTarget {
- %nothreadallow;
- PyObject *lldb::SBTarget::__str__ (){
- lldb::SBStream description;
- $self->GetDescription (description, lldb::eDescriptionLevelBrief);
- const char *desc = description.GetData();
- size_t desc_len = description.GetSize();
- if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
- --desc_len;
- return PythonString(llvm::StringRef(desc, desc_len)).release();
- }
- %clearnothreadallow;
-
%pythoncode %{
def __eq__(self, rhs):
if not isinstance(rhs, type(self)):
OpenPOWER on IntegriCloud