diff options
author | Greg Clayton <gclayton@apple.com> | 2010-10-06 03:09:58 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2010-10-06 03:09:58 +0000 |
commit | 1d273166064c5163a1ca2be9a8e65cb628fc3524 (patch) | |
tree | 1471372d3bfb657f1e6820d0bc5aa13e33d13684 /lldb/scripts/Python/python-extensions.swig | |
parent | 32c4085ba2d259ff9a4365b1962362248de2c655 (diff) | |
download | bcm5719-llvm-1d273166064c5163a1ca2be9a8e65cb628fc3524.tar.gz bcm5719-llvm-1d273166064c5163a1ca2be9a8e65cb628fc3524.zip |
Added the ability to get the disassembly instructions from the function and
symbol.
llvm-svn: 115734
Diffstat (limited to 'lldb/scripts/Python/python-extensions.swig')
-rw-r--r-- | lldb/scripts/Python/python-extensions.swig | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lldb/scripts/Python/python-extensions.swig b/lldb/scripts/Python/python-extensions.swig index 7d706fd0d63..e92ecf6428e 100644 --- a/lldb/scripts/Python/python-extensions.swig +++ b/lldb/scripts/Python/python-extensions.swig @@ -76,6 +76,20 @@ return PyString_FromString (description.GetData()); } } +%extend lldb::SBInstruction { + PyObject *lldb::SBInstruction::__repr__ (){ + lldb::SBStream description; + $self->GetDescription (description); + return PyString_FromString (description.GetData()); + } +} +%extend lldb::SBInstructionList { + PyObject *lldb::SBInstructionList::__repr__ (){ + lldb::SBStream description; + $self->GetDescription (description); + return PyString_FromString (description.GetData()); + } +} %extend lldb::SBLineEntry { PyObject *lldb::SBLineEntry::__repr__ (){ lldb::SBStream description; |