LLDB mainline
lldb::SBSection Class Reference

#include <SBSection.h>

Public Member Functions

 SBSection ()
 SBSection (const lldb::SBSection &rhs)
 ~SBSection ()
const lldb::SBSectionoperator= (const lldb::SBSection &rhs)
 operator bool () const
bool IsValid () const
const char * GetName ()
lldb::SBSection GetParent ()
lldb::SBSection FindSubSection (const char *sect_name)
size_t GetNumSubSections ()
lldb::SBSection GetSubSectionAtIndex (size_t idx)
lldb::addr_t GetFileAddress ()
lldb::addr_t GetLoadAddress (lldb::SBTarget &target)
lldb::addr_t GetByteSize ()
uint64_t GetFileOffset ()
uint64_t GetFileByteSize ()
lldb::SBData GetSectionData ()
lldb::SBData GetSectionData (uint64_t offset, uint64_t size)
SectionType GetSectionType ()
uint32_t GetPermissions () const
 Gets the permissions (RWX) of the section of the object file.
uint32_t GetTargetByteSize ()
uint32_t GetAlignment ()
 Return the alignment of the section in bytes.
bool operator== (const lldb::SBSection &rhs)
bool operator!= (const lldb::SBSection &rhs)
bool GetDescription (lldb::SBStream &description)

Private Member Functions

 SBSection (const lldb::SectionSP &section_sp)
lldb::SectionSP GetSP () const
void SetSP (const lldb::SectionSP &section_sp)

Private Attributes

lldb::SectionWP m_opaque_wp

Friends

class SBAddress
class SBModule
class SBTarget

Detailed Description

Definition at line 17 of file SBSection.h.

Constructor & Destructor Documentation

◆ SBSection() [1/3]

SBSection::SBSection ( )

Definition at line 23 of file SBSection.cpp.

References LLDB_INSTRUMENT_VA.

Referenced by operator!=(), operator=(), operator==(), SBSection(), SBTarget, and ~SBSection().

◆ SBSection() [2/3]

SBSection::SBSection ( const lldb::SBSection & rhs)

Definition at line 25 of file SBSection.cpp.

References LLDB_INSTRUMENT_VA, m_opaque_wp, and SBSection().

◆ ~SBSection()

◆ SBSection() [3/3]

SBSection::SBSection ( const lldb::SectionSP & section_sp)
private

Definition at line 29 of file SBSection.cpp.

References m_opaque_wp.

Member Function Documentation

◆ FindSubSection()

lldb::SBSection SBSection::FindSubSection ( const char * sect_name)

Definition at line 78 of file SBSection.cpp.

References GetSP(), LLDB_INSTRUMENT_VA, and SetSP().

Referenced by ~SBSection().

◆ GetAlignment()

uint32_t SBSection::GetAlignment ( )

Return the alignment of the section in bytes.

Returns
The alignment of the section in bytes

Definition at line 217 of file SBSection.cpp.

References GetSP(), and LLDB_INSTRUMENT_VA.

Referenced by ~SBSection().

◆ GetByteSize()

lldb::addr_t SBSection::GetByteSize ( )

Definition at line 140 of file SBSection.cpp.

References GetSP(), and LLDB_INSTRUMENT_VA.

Referenced by ~SBSection().

◆ GetDescription()

◆ GetFileAddress()

lldb::addr_t SBSection::GetFileAddress ( )

Definition at line 118 of file SBSection.cpp.

References GetSP(), LLDB_INSTRUMENT_VA, and LLDB_INVALID_ADDRESS.

Referenced by ~SBSection().

◆ GetFileByteSize()

uint64_t SBSection::GetFileByteSize ( )

Definition at line 164 of file SBSection.cpp.

References GetSP(), and LLDB_INSTRUMENT_VA.

Referenced by ~SBSection().

◆ GetFileOffset()

uint64_t SBSection::GetFileOffset ( )

Definition at line 149 of file SBSection.cpp.

References lldb_private::ObjectFile::GetFileOffset(), GetSP(), LLDB_INSTRUMENT_VA, and UINT64_MAX.

Referenced by ~SBSection().

◆ GetLoadAddress()

lldb::addr_t SBSection::GetLoadAddress ( lldb::SBTarget & target)

Definition at line 128 of file SBSection.cpp.

References GetSP(), lldb::SBTarget::GetSP(), LLDB_INSTRUMENT_VA, and LLDB_INVALID_ADDRESS.

Referenced by ~SBSection().

◆ GetName()

const char * SBSection::GetName ( )

Definition at line 56 of file SBSection.cpp.

References GetSP(), and LLDB_INSTRUMENT_VA.

◆ GetNumSubSections()

size_t SBSection::GetNumSubSections ( )

Definition at line 93 of file SBSection.cpp.

References GetSP(), and LLDB_INSTRUMENT_VA.

Referenced by ~SBSection().

◆ GetParent()

lldb::SBSection SBSection::GetParent ( )

Definition at line 65 of file SBSection.cpp.

References GetSP(), LLDB_INSTRUMENT_VA, and SetSP().

Referenced by ~SBSection().

◆ GetPermissions()

uint32_t SBSection::GetPermissions ( ) const

Gets the permissions (RWX) of the section of the object file.

Returns a mask of bits of enum lldb::Permissions for this section. Sections for which permissions are not defined, 0 is returned for them. The binary representation of this value corresponds to [XRW] i.e. for a section having read and execute permissions, the value returned is 6

Returns
Returns an unsigned value for Permissions for the section.

Definition at line 202 of file SBSection.cpp.

References GetSP(), and LLDB_INSTRUMENT_VA.

◆ GetSectionData() [1/2]

SBData SBSection::GetSectionData ( )

Definition at line 173 of file SBSection.cpp.

References GetSectionData(), LLDB_INSTRUMENT_VA, and UINT64_MAX.

Referenced by GetSectionData(), and ~SBSection().

◆ GetSectionData() [2/2]

SBData SBSection::GetSectionData ( uint64_t offset,
uint64_t size )

Definition at line 179 of file SBSection.cpp.

References GetSP(), LLDB_INSTRUMENT_VA, and lldb::SBData::SetOpaque().

◆ GetSectionType()

SectionType SBSection::GetSectionType ( )

Definition at line 193 of file SBSection.cpp.

References lldb::eSectionTypeInvalid, GetSP(), and LLDB_INSTRUMENT_VA.

◆ GetSP()

◆ GetSubSectionAtIndex()

lldb::SBSection SBSection::GetSubSectionAtIndex ( size_t idx)

Definition at line 102 of file SBSection.cpp.

References GetSP(), LLDB_INSTRUMENT_VA, and SetSP().

Referenced by ~SBSection().

◆ GetTargetByteSize()

uint32_t SBSection::GetTargetByteSize ( )

Definition at line 211 of file SBSection.cpp.

References LLDB_INSTRUMENT_VA.

Referenced by ~SBSection().

◆ IsValid()

bool SBSection::IsValid ( ) const

◆ operator bool()

SBSection::operator bool ( ) const
explicit

Definition at line 49 of file SBSection.cpp.

References GetSP(), and LLDB_INSTRUMENT_VA.

◆ operator!=()

bool SBSection::operator!= ( const lldb::SBSection & rhs)

Definition at line 236 of file SBSection.cpp.

References GetSP(), LLDB_INSTRUMENT_VA, and SBSection().

◆ operator=()

const SBSection & SBSection::operator= ( const lldb::SBSection & rhs)

Definition at line 36 of file SBSection.cpp.

References LLDB_INSTRUMENT_VA, m_opaque_wp, and SBSection().

Referenced by ~SBSection().

◆ operator==()

bool SBSection::operator== ( const lldb::SBSection & rhs)

Definition at line 226 of file SBSection.cpp.

References GetSP(), LLDB_INSTRUMENT_VA, and SBSection().

◆ SetSP()

void SBSection::SetSP ( const lldb::SectionSP & section_sp)
private

◆ SBAddress

friend class SBAddress
friend

Definition at line 86 of file SBSection.h.

References SBAddress.

Referenced by SBAddress.

◆ SBModule

friend class SBModule
friend

Definition at line 87 of file SBSection.h.

References SBModule.

Referenced by SBModule.

◆ SBTarget

friend class SBTarget
friend

Definition at line 88 of file SBSection.h.

References GetSP(), SBSection(), SBTarget, and SetSP().

Referenced by SBTarget.

Member Data Documentation

◆ m_opaque_wp

lldb::SectionWP lldb::SBSection::m_opaque_wp
private

Definition at line 96 of file SBSection.h.

Referenced by GetSP(), operator=(), SBSection(), SBSection(), and SetSP().


The documentation for this class was generated from the following files: