diff options
author | Greg Clayton <gclayton@apple.com> | 2013-02-25 21:53:07 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2013-02-25 21:53:07 +0000 |
commit | 006c1d1d49bdc714d9aa4ea167cba18f6fe7a28e (patch) | |
tree | 6181bf1d9be9cfef142ac39d516b310d6f77cd8e /lldb/scripts/Python/interface/SBModule.i | |
parent | 8f5640588ae81881125b8d3faff7bb9582c34362 (diff) | |
download | bcm5719-llvm-006c1d1d49bdc714d9aa4ea167cba18f6fe7a28e.tar.gz bcm5719-llvm-006c1d1d49bdc714d9aa4ea167cba18f6fe7a28e.zip |
<rdar://problem/13281528>
Fixed issues with the SBModule "sections" property, and with the SBBlock "ranges" attributes.
llvm-svn: 176051
Diffstat (limited to 'lldb/scripts/Python/interface/SBModule.i')
-rw-r--r-- | lldb/scripts/Python/interface/SBModule.i | 8 |
1 files changed, 4 insertions, 4 deletions
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.''') |