Fixed SBValueList to have a __str__ function like all other SB classes. Previously this was done as __repr__.
llvm-svn: 179327
This commit is contained in:
parent
39da3efdd6
commit
dda8c7d56f
|
@ -489,7 +489,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
%extend lldb::SBValueList {
|
%extend lldb::SBValueList {
|
||||||
PyObject *lldb::SBValueList::__repr__ (){
|
PyObject *lldb::SBValueList::__str__ (){
|
||||||
lldb::SBStream description;
|
lldb::SBStream description;
|
||||||
const size_t n = $self->GetSize();
|
const size_t n = $self->GetSize();
|
||||||
if (n)
|
if (n)
|
||||||
|
@ -507,7 +507,8 @@
|
||||||
--desc_len;
|
--desc_len;
|
||||||
if (desc_len > 0)
|
if (desc_len > 0)
|
||||||
return PyString_FromStringAndSize (desc, desc_len);
|
return PyString_FromStringAndSize (desc, desc_len);
|
||||||
return Py_None;
|
else
|
||||||
|
return PyString_FromString("");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
%extend lldb::SBWatchpoint {
|
%extend lldb::SBWatchpoint {
|
||||||
|
|
Loading…
Reference in New Issue