[Lldb-commits] [lldb] r176051 - <rdar://problem/13281528>
Greg Clayton
gclayton at apple.com
Mon Feb 25 13:53:07 PST 2013
Author: gclayton
Date: Mon Feb 25 15:53:07 2013
New Revision: 176051
URL: http://llvm.org/viewvc/llvm-project?rev=176051&view=rev
Log:
<rdar://problem/13281528>
Fixed issues with the SBModule "sections" property, and with the SBBlock "ranges" attributes.
Modified:
lldb/trunk/scripts/Python/interface/SBBlock.i
lldb/trunk/scripts/Python/interface/SBModule.i
Modified: lldb/trunk/scripts/Python/interface/SBBlock.i
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/Python/interface/SBBlock.i?rev=176051&r1=176050&r2=176051&view=diff
==============================================================================
--- lldb/trunk/scripts/Python/interface/SBBlock.i (original)
+++ lldb/trunk/scripts/Python/interface/SBBlock.i Mon Feb 25 15:53:07 2013
@@ -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())
Modified: lldb/trunk/scripts/Python/interface/SBModule.i
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/Python/interface/SBModule.i?rev=176051&r1=176050&r2=176051&view=diff
==============================================================================
--- lldb/trunk/scripts/Python/interface/SBModule.i (original)
+++ lldb/trunk/scripts/Python/interface/SBModule.i Mon Feb 25 15:53:07 2013
@@ -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.''')
More information about the lldb-commits
mailing list