[lldb] Make SBSection::GetSectionData call Section::GetSectionData.
authorJorge Gorbe Moya <jgorbe@google.com>
Thu, 26 Jan 2023 22:23:41 +0000 (14:23 -0800)
committerJorge Gorbe Moya <jgorbe@google.com>
Fri, 27 Jan 2023 18:15:35 +0000 (10:15 -0800)
commit805600c7d573cf88cf035d01a2ea9389fc24d435
treec7725799d5dc8626320ac33e6816ddd0b5ca3bc6
parent41e776386dd5930565b338b776816c48245f52f3
[lldb] Make SBSection::GetSectionData call Section::GetSectionData.

`SBSection::GetSectionData` and `Section::GetSectionData` are
implemented differently, and the `SBSection` method doesn't handle
compressed sections correctly.

Differential Revision: https://reviews.llvm.org/D142672
lldb/source/API/SBSection.cpp
lldb/test/API/python_api/section/TestSectionAPI.py
lldb/test/API/python_api/section/compressed-sections.yaml [new file with mode: 0644]