1 STRING_EXTENSION_OUTSIDE(SBFunction) 2 3 %extend lldb::SBFunction { 4 #ifdef SWIGPYTHON 5 %pythoncode %{ 6 def get_instructions_from_current_target (self): 7 return self.GetInstructions (target) 8 9 addr = property(GetStartAddress, None, doc='''A read only property that returns an lldb object that represents the start address (lldb.SBAddress) for this function.''') 10 end_addr = property(GetEndAddress, None, doc='''A read only property that returns an lldb object that represents the end address (lldb.SBAddress) for this function.''') 11 block = property(GetBlock, None, doc='''A read only property that returns an lldb object that represents the top level lexical block (lldb.SBBlock) for this function.''') 12 instructions = property(get_instructions_from_current_target, None, doc='''A read only property that returns an lldb object that represents the instructions (lldb.SBInstructionList) for this function.''') 13 mangled = property(GetMangledName, None, doc='''A read only property that returns the mangled (linkage) name for this function as a string.''') 14 name = property(GetName, None, doc='''A read only property that returns the name for this function as a string.''') 15 prologue_size = property(GetPrologueByteSize, None, doc='''A read only property that returns the size in bytes of the prologue instructions as an unsigned integer.''') 16 type = property(GetType, None, doc='''A read only property that returns an lldb object that represents the return type (lldb.SBType) for this function.''') 17 %} 18 #endif 19 } 20