Index: include/lldb/API/SBSection.h =================================================================== --- include/lldb/API/SBSection.h +++ include/lldb/API/SBSection.h @@ -71,6 +71,9 @@ SectionType GetSectionType (); + uint32_t + GetPermissions () const; + //------------------------------------------------------------------ /// Return the size of a target's byte represented by this section /// in numbers of host bytes. Note that certain architectures have Index: scripts/interface/SBSection.i =================================================================== --- scripts/interface/SBSection.i +++ scripts/interface/SBSection.i @@ -90,6 +90,9 @@ SectionType GetSectionType (); + uint32_t + GetPermissions () const; + %feature("docstring", " //------------------------------------------------------------------ /// Return the size of a target's byte represented by this section Index: source/API/SBSection.cpp =================================================================== --- source/API/SBSection.cpp +++ source/API/SBSection.cpp @@ -251,6 +251,15 @@ } uint32_t +SBSection::GetPermissions () const +{ + SectionSP section_sp (GetSP()); + if (section_sp.get()) + return section_sp->GetPermissions(); + return 0; +} + +uint32_t SBSection::GetTargetByteSize () { SectionSP section_sp (GetSP());