Remove all the __repr__ methods from the API/*.h files, and put them
into python-extensions.swig, which gets included into lldb.swig, and adds them back into the classes when swig generates it's C++ file. This keeps the Python stuff out of the general API classes. Also fixed a small bug in the copy constructor for SBSymbolContext. llvm-svn: 114602
This commit is contained in:
@@ -337,7 +337,7 @@ SBBreakpoint::GetDescription (const char *description_level, SBStream &descripti
|
||||
else
|
||||
level = eDescriptionLevelBrief;
|
||||
|
||||
|
||||
description.ref();
|
||||
m_opaque_sp->GetDescription (description.get(), level);
|
||||
description.get()->EOL();
|
||||
}
|
||||
@@ -347,15 +347,6 @@ SBBreakpoint::GetDescription (const char *description_level, SBStream &descripti
|
||||
return true;
|
||||
}
|
||||
|
||||
PyObject *
|
||||
SBBreakpoint::__repr__ ()
|
||||
{
|
||||
SBStream description;
|
||||
description.ref();
|
||||
GetDescription ("full", description);
|
||||
return PyString_FromString (description.GetData());
|
||||
}
|
||||
|
||||
bool
|
||||
SBBreakpoint::PrivateBreakpointHitCallback
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user