summaryrefslogtreecommitdiffstats
path: root/lldb/scripts/Python/interface/SBFunction.i
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/scripts/Python/interface/SBFunction.i')
-rw-r--r--lldb/scripts/Python/interface/SBFunction.i10
1 files changed, 8 insertions, 2 deletions
diff --git a/lldb/scripts/Python/interface/SBFunction.i b/lldb/scripts/Python/interface/SBFunction.i
index 76c80661b4f..37b957fd5cf 100644
--- a/lldb/scripts/Python/interface/SBFunction.i
+++ b/lldb/scripts/Python/interface/SBFunction.i
@@ -78,13 +78,16 @@ public:
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__["start_addr"] = GetStartAddress
+ __swig_getmethods__["addr"] = GetStartAddress
if _newclass: x = property(GetStartAddress, None)
__swig_getmethods__["end_addr"] = GetEndAddress
@@ -92,7 +95,10 @@ public:
__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)
+
%}
};
OpenPOWER on IntegriCloud