LLDB  mainline
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
lldb::SBSection Class Reference

#include <SBSection.h>

Collaboration diagram for lldb::SBSection:
Collaboration graph
[legend]

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. More...
 
uint32_t GetTargetByteSize ()
 Return the size of a target's byte represented by this section in numbers of host bytes. More...
 
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_RECORD_CONSTRUCTOR_NO_ARGS.

◆ SBSection() [2/3]

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

Definition at line 27 of file SBSection.cpp.

References LLDB_RECORD_CONSTRUCTOR.

◆ ~SBSection()

SBSection::~SBSection ( )
default

◆ SBSection() [3/3]

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

Definition at line 31 of file SBSection.cpp.

References m_opaque_wp.

Member Function Documentation

◆ FindSubSection()

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

Definition at line 82 of file SBSection.cpp.

References GetSP(), LLDB_RECORD_METHOD, LLDB_RECORD_RESULT, and SetSP().

◆ GetByteSize()

lldb::addr_t SBSection::GetByteSize ( )

Definition at line 147 of file SBSection.cpp.

References GetSP(), and LLDB_RECORD_METHOD_NO_ARGS.

◆ GetDescription()

bool SBSection::GetDescription ( lldb::SBStream description)

◆ GetFileAddress()

lldb::addr_t SBSection::GetFileAddress ( )

Definition at line 124 of file SBSection.cpp.

References GetSP(), LLDB_INVALID_ADDRESS, and LLDB_RECORD_METHOD_NO_ARGS.

◆ GetFileByteSize()

uint64_t SBSection::GetFileByteSize ( )

Definition at line 171 of file SBSection.cpp.

References GetSP(), and LLDB_RECORD_METHOD_NO_ARGS.

◆ GetFileOffset()

uint64_t SBSection::GetFileOffset ( )

◆ GetLoadAddress()

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

◆ GetName()

const char * SBSection::GetName ( )

Definition at line 60 of file SBSection.cpp.

References GetSP(), and LLDB_RECORD_METHOD_NO_ARGS.

◆ GetNumSubSections()

size_t SBSection::GetNumSubSections ( )

Definition at line 98 of file SBSection.cpp.

References GetSP(), and LLDB_RECORD_METHOD_NO_ARGS.

◆ GetParent()

lldb::SBSection SBSection::GetParent ( )

Definition at line 69 of file SBSection.cpp.

References GetSP(), LLDB_RECORD_METHOD_NO_ARGS, LLDB_RECORD_RESULT, and SetSP().

◆ 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 235 of file SBSection.cpp.

References GetSP(), and LLDB_RECORD_METHOD_CONST_NO_ARGS.

◆ GetSectionData() [1/2]

SBData SBSection::GetSectionData ( )

Definition at line 180 of file SBSection.cpp.

References LLDB_RECORD_METHOD_NO_ARGS, LLDB_RECORD_RESULT, and UINT64_MAX.

Referenced by GetSectionData().

◆ GetSectionData() [2/2]

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

◆ GetSectionType()

SectionType SBSection::GetSectionType ( )

Definition at line 226 of file SBSection.cpp.

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

◆ GetSP()

lldb::SectionSP SBSection::GetSP ( ) const
private

◆ GetSubSectionAtIndex()

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

Definition at line 107 of file SBSection.cpp.

References GetSP(), LLDB_RECORD_METHOD, LLDB_RECORD_RESULT, and SetSP().

◆ GetTargetByteSize()

uint32_t SBSection::GetTargetByteSize ( )

Return the size of a target's byte represented by this section in numbers of host bytes.

Note that certain architectures have varying minimum addressable unit (i.e. byte) size for their CODE or DATA buses.

Returns
The number of host (8-bit) bytes needed to hold a target byte

Definition at line 244 of file SBSection.cpp.

References GetSP(), and LLDB_RECORD_METHOD_NO_ARGS.

◆ IsValid()

bool SBSection::IsValid ( ) const

◆ operator bool()

SBSection::operator bool ( ) const
explicit

Definition at line 53 of file SBSection.cpp.

References LLDB_RECORD_METHOD_CONST_NO_ARGS.

◆ operator!=()

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

Definition at line 264 of file SBSection.cpp.

References GetSP(), and LLDB_RECORD_METHOD.

◆ operator=()

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

Definition at line 39 of file SBSection.cpp.

References LLDB_RECORD_METHOD, LLDB_RECORD_RESULT, and m_opaque_wp.

◆ operator==()

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

Definition at line 253 of file SBSection.cpp.

References GetSP(), and LLDB_RECORD_METHOD.

◆ SetSP()

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

Friends And Related Function Documentation

◆ SBAddress

friend class SBAddress
friend

Definition at line 86 of file SBSection.h.

◆ SBModule

friend class SBModule
friend

Definition at line 87 of file SBSection.h.

◆ SBTarget

friend class SBTarget
friend

Definition at line 88 of file SBSection.h.

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(), and SetSP().


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