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.i19
1 files changed, 19 insertions, 0 deletions
diff --git a/lldb/scripts/Python/interface/SBFunction.i b/lldb/scripts/Python/interface/SBFunction.i
index ac3d1231597..76c80661b4f 100644
--- a/lldb/scripts/Python/interface/SBFunction.i
+++ b/lldb/scripts/Python/interface/SBFunction.i
@@ -76,6 +76,25 @@ public:
bool
GetDescription (lldb::SBStream &description);
+
+ %pythoncode %{
+ __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
+ 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)
+
+ %}
+
};
} // namespace lldb
OpenPOWER on IntegriCloud