diff options
Diffstat (limited to 'lldb/scripts/Python/interface/SBSymbol.i')
-rw-r--r-- | lldb/scripts/Python/interface/SBSymbol.i | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/lldb/scripts/Python/interface/SBSymbol.i b/lldb/scripts/Python/interface/SBSymbol.i index c0cb710f262..0b5342a53f6 100644 --- a/lldb/scripts/Python/interface/SBSymbol.i +++ b/lldb/scripts/Python/interface/SBSymbol.i @@ -52,6 +52,34 @@ public: bool GetDescription (lldb::SBStream &description); + + %pythoncode %{ + def get_instructions_from_current_target (self): + return self.GetInstructions (target) + + __swig_getmethods__["name"] = GetName + if _newclass: x = property(GetName, None) + + __swig_getmethods__["mangled"] = GetMangledName + if _newclass: x = property(GetMangledName, None) + + __swig_getmethods__["type"] = GetType + if _newclass: x = property(GetType, None) + + __swig_getmethods__["addr"] = GetStartAddress + if _newclass: x = property(GetStartAddress, None) + + __swig_getmethods__["end_addr"] = GetEndAddress + if _newclass: x = property(GetEndAddress, None) + + __swig_getmethods__["prologue_size"] = GetPrologueByteSize + if _newclass: x = property(GetPrologueByteSize, None) + + __swig_getmethods__["instructions"] = get_instructions_from_current_target + if _newclass: x = property(get_instructions_from_current_target, None) + + %} + }; } // namespace lldb |