From 006c1d1d49bdc714d9aa4ea167cba18f6fe7a28e Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Mon, 25 Feb 2013 21:53:07 +0000 Subject: Fixed issues with the SBModule "sections" property, and with the SBBlock "ranges" attributes. llvm-svn: 176051 --- lldb/scripts/Python/interface/SBModule.i | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lldb/scripts/Python/interface/SBModule.i') diff --git a/lldb/scripts/Python/interface/SBModule.i b/lldb/scripts/Python/interface/SBModule.i index 6142c39dfb9..d00f28b6d3e 100644 --- a/lldb/scripts/Python/interface/SBModule.i +++ b/lldb/scripts/Python/interface/SBModule.i @@ -378,11 +378,11 @@ public: def get_sections_array(self): '''An accessor function that returns an array object that contains all sections in this module object.''' - if not hasattr(self, 'sections'): - self.sections = [] + if not hasattr(self, 'sections_array'): + self.sections_array = [] for idx in range(self.num_sections): - self.sections.append(self.GetSectionAtIndex(idx)) - return self.sections + self.sections_array.append(self.GetSectionAtIndex(idx)) + return self.sections_array __swig_getmethods__["symbols"] = get_symbols_array if _newclass: symbols = property(get_symbols_array, None, doc='''A read only property that returns a list() of lldb.SBSymbol objects contained in this module.''') -- cgit v1.2.3