summaryrefslogtreecommitdiffstats
path: root/lldb/scripts/Python/interface
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2013-02-25 21:53:07 +0000
committerGreg Clayton <gclayton@apple.com>2013-02-25 21:53:07 +0000
commit006c1d1d49bdc714d9aa4ea167cba18f6fe7a28e (patch)
tree6181bf1d9be9cfef142ac39d516b310d6f77cd8e /lldb/scripts/Python/interface
parent8f5640588ae81881125b8d3faff7bb9582c34362 (diff)
downloadbcm5719-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')
-rw-r--r--lldb/scripts/Python/interface/SBBlock.i10
-rw-r--r--lldb/scripts/Python/interface/SBModule.i8
2 files changed, 9 insertions, 9 deletions
diff --git a/lldb/scripts/Python/interface/SBBlock.i b/lldb/scripts/Python/interface/SBBlock.i
index 4898ffb47da..26285d6e76e 100644
--- a/lldb/scripts/Python/interface/SBBlock.i
+++ b/lldb/scripts/Python/interface/SBBlock.i
@@ -106,7 +106,7 @@ public:
%pythoncode %{
def get_range_at_index(self, idx):
if idx < self.GetNumRanges():
- return [self.sbblock.GetRangeStartAddress(key), self.sbblock.GetRangeEndAddress(key)]
+ return [self.GetRangeStartAddress(idx), self.GetRangeEndAddress(idx)]
return []
class ranges_access(object):
@@ -137,11 +137,11 @@ public:
def get_ranges_array(self):
'''An accessor function that returns an array object that contains all ranges in this block object.'''
- if not hasattr(self, 'ranges'):
- self.ranges = []
+ if not hasattr(self, 'ranges_array'):
+ self.ranges_array = []
for idx in range(self.num_ranges):
- self.ranges.append (self.get_range_at_index (idx))
- return self.ranges
+ self.ranges_array.append ([self.GetRangeStartAddress(idx), self.GetRangeEndAddress(idx)])
+ return self.ranges_array
def get_call_site(self):
return declaration(self.GetInlinedCallSiteFile(), self.GetInlinedCallSiteLine(), self.GetInlinedCallSiteColumn())
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.''')
OpenPOWER on IntegriCloud