projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7acb676
)
Fixed a test suite error on MacOSX where people were using ".data" as the data sectio...
author
Greg Clayton
<gclayton@apple.com>
Mon, 3 Nov 2014 22:58:38 +0000
(22:58 +0000)
committer
Greg Clayton
<gclayton@apple.com>
Mon, 3 Nov 2014 22:58:38 +0000
(22:58 +0000)
llvm-svn: 221196
lldb/test/python_api/target/TestTargetAPI.py
patch
|
blob
|
history
diff --git
a/lldb/test/python_api/target/TestTargetAPI.py
b/lldb/test/python_api/target/TestTargetAPI.py
index
d57305c
..
70551ee
100644
(file)
--- a/
lldb/test/python_api/target/TestTargetAPI.py
+++ b/
lldb/test/python_api/target/TestTargetAPI.py
@@
-252,9
+252,17
@@
class TargetAPITestCase(TestBase):
mod = target.GetModuleAtIndex(0)
data_section = None
for s in mod.sections:
- if ".data" == s.name:
+ sect_type = s.GetSectionType()
+ if sect_type == lldb.eSectionTypeData:
data_section = s
break
+ elif sect_type == lldb.eSectionTypeContainer:
+ for i in range(s.GetNumSubSections()):
+ ss = s.GetSubSectionAtIndex(i)
+ sect_type = ss.GetSectionType()
+ if sect_type == lldb.eSectionTypeData:
+ data_section = ss
+ break
self.assertIsNotNone(data_section)
return data_section