forked from OSchip/llvm-project
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 {
|
||||
PyObject *lldb::SBValueList::__repr__ (){
|
||||
PyObject *lldb::SBValueList::__str__ (){
|
||||
lldb::SBStream description;
|
||||
const size_t n = $self->GetSize();
|
||||
if (n)
|
||||
|
@ -507,7 +507,8 @@
|
|||
--desc_len;
|
||||
if (desc_len > 0)
|
||||
return PyString_FromStringAndSize (desc, desc_len);
|
||||
return Py_None;
|
||||
else
|
||||
return PyString_FromString("");
|
||||
}
|
||||
}
|
||||
%extend lldb::SBWatchpoint {
|
||||
|
|
Loading…
Reference in New Issue