diff options
author | Greg Clayton <gclayton@apple.com> | 2012-02-04 02:58:17 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2012-02-04 02:58:17 +0000 |
commit | 819134a7c41aa43d4b23174e2d406197986e4823 (patch) | |
tree | 7f9a6fea04e3384fed283a7c164b1ccfe950707c /lldb/scripts/Python/interface/SBModule.i | |
parent | f8ea108c05b79a43cd9c1905d9c4fc311fec7467 (diff) | |
download | bcm5719-llvm-819134a7c41aa43d4b23174e2d406197986e4823.tar.gz bcm5719-llvm-819134a7c41aa43d4b23174e2d406197986e4823.zip |
Allow a SBAddress to be created from a SBSection and an offset.
Changed the lldb.SBModule.section[<str>] property to return a single section.
Added a lldb.SBSection.addr property which returns an lldb.SBAddress object.
llvm-svn: 149755
Diffstat (limited to 'lldb/scripts/Python/interface/SBModule.i')
-rw-r--r-- | lldb/scripts/Python/interface/SBModule.i | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lldb/scripts/Python/interface/SBModule.i b/lldb/scripts/Python/interface/SBModule.i index d66e169f0d9..49e032d8b82 100644 --- a/lldb/scripts/Python/interface/SBModule.i +++ b/lldb/scripts/Python/interface/SBModule.i @@ -320,12 +320,10 @@ public: if key < count: return self.sbmodule.GetSectionAtIndex(key) elif type(key) is str: - matches = [] for idx in range(count): section = self.sbmodule.GetSectionAtIndex(idx) if section.name == key: - matches.append(section) - return matches + return section elif isinstance(key, self.re_compile_type): matches = [] for idx in range(count): |