From 819134a7c41aa43d4b23174e2d406197986e4823 Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Sat, 4 Feb 2012 02:58:17 +0000 Subject: Allow a SBAddress to be created from a SBSection and an offset. Changed the lldb.SBModule.section[] property to return a single section. Added a lldb.SBSection.addr property which returns an lldb.SBAddress object. llvm-svn: 149755 --- lldb/scripts/Python/interface/SBModule.i | 4 +--- 1 file changed, 1 insertion(+), 3 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 d66e169..49e032d 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): -- cgit v1.1