diff options
| author | Muhammad Omair Javaid <omair.javaid@linaro.org> | 2023-01-30 12:32:23 +0500 |
|---|---|---|
| committer | Muhammad Omair Javaid <omair.javaid@linaro.org> | 2023-01-30 12:34:37 +0500 |
| commit | e1bbe50f5a48e9b5407de9e5f4ab8197dedc85c5 (patch) | |
| tree | 01430f51d4e2cf53e2c32460ffdc73cd891b556a /lldb/test/API/python_api/section | |
| parent | 89590cd1fe7ce61edf0ba59d3e7dc171e5fc0211 (diff) | |
| download | llvm-e1bbe50f5a48e9b5407de9e5f4ab8197dedc85c5.zip llvm-e1bbe50f5a48e9b5407de9e5f4ab8197dedc85c5.tar.gz llvm-e1bbe50f5a48e9b5407de9e5f4ab8197dedc85c5.tar.bz2 | |
Revert "[lldb] Make SBSection::GetSectionData call Section::GetSectionData."
This reverts commit 805600c7d573cf88cf035d01a2ea9389fc24d435.
LLDB windows buildbots were broken by the TestSectionAPI.py test. I dont
have full context of the commit to fix it. Reverting it temporarily.
https://lab.llvm.org/buildbot/#/builders/83/builds/28617
https://lab.llvm.org/buildbot/#/builders/219/builds/180
Differential Revision: https://reviews.llvm.org/D142672
Diffstat (limited to 'lldb/test/API/python_api/section')
| -rw-r--r-- | lldb/test/API/python_api/section/TestSectionAPI.py | 15 | ||||
| -rw-r--r-- | lldb/test/API/python_api/section/compressed-sections.yaml | 11 |
2 files changed, 0 insertions, 26 deletions
diff --git a/lldb/test/API/python_api/section/TestSectionAPI.py b/lldb/test/API/python_api/section/TestSectionAPI.py index b01ddec..ab9ae56 100644 --- a/lldb/test/API/python_api/section/TestSectionAPI.py +++ b/lldb/test/API/python_api/section/TestSectionAPI.py @@ -48,18 +48,3 @@ class SectionAPITestCase(TestBase): section = target.modules[0].sections[0] self.assertEqual(section.GetAlignment(), 0x1000) self.assertEqual(section.alignment, 0x1000) - - def test_compressed_section_data(self): - exe = self.getBuildArtifact("compressed-sections.out") - self.yaml2obj("compressed-sections.yaml", exe) - target = self.dbg.CreateTarget(exe) - self.assertTrue(target, VALID_TARGET) - - # exe contains a single section with SHF_COMPRESSED. Check that - # GetSectionData returns the uncompressed data and not the raw contents - # of the section. - section = target.modules[0].sections[0] - section_data = section.GetSectionData().uint8s - self.assertEqual(section_data, - [0x20, 0x30, 0x40, 0x50, 0x60, 0x70, 0x80, 0x90]) - diff --git a/lldb/test/API/python_api/section/compressed-sections.yaml b/lldb/test/API/python_api/section/compressed-sections.yaml deleted file mode 100644 index a41307e..0000000 --- a/lldb/test/API/python_api/section/compressed-sections.yaml +++ /dev/null @@ -1,11 +0,0 @@ ---- !ELF -FileHeader: - Class: ELFCLASS32 - Data: ELFDATA2LSB - Type: ET_REL - Machine: EM_386 -Sections: - - Name: .compressed - Type: SHT_PROGBITS - Flags: [ SHF_COMPRESSED ] - Content: 010000000800000001000000789c5330700848286898000009c802c1 |
