summaryrefslogtreecommitdiffstats
path: root/lldb/scripts/Python/interface/SBSection.i
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/scripts/Python/interface/SBSection.i')
-rw-r--r--lldb/scripts/Python/interface/SBSection.i6
1 files changed, 6 insertions, 0 deletions
diff --git a/lldb/scripts/Python/interface/SBSection.i b/lldb/scripts/Python/interface/SBSection.i
index 78980b51667..95838755c59 100644
--- a/lldb/scripts/Python/interface/SBSection.i
+++ b/lldb/scripts/Python/interface/SBSection.i
@@ -88,9 +88,15 @@ public:
GetDescription (lldb::SBStream &description);
%pythoncode %{
+ def get_addr(self):
+ return SBAddress(self, 0)
+
__swig_getmethods__["name"] = GetName
if _newclass: x = property(GetName, None)
+ __swig_getmethods__["addr"] = get_addr
+ if _newclass: x = property(get_addr, None)
+
__swig_getmethods__["file_addr"] = GetFileAddress
if _newclass: x = property(GetFileAddress, None)
OpenPOWER on IntegriCloud