LLDB  mainline
Public Member Functions | Friends | List of all members
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. 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)
 

Friends

class SBAddress
 
class SBModule
 
class SBTarget
 

Detailed Description

Definition at line 17 of file SBSection.h.

Constructor & Destructor Documentation

◆ SBSection() [1/2]

SBSection::SBSection ( )

Definition at line 23 of file SBSection.cpp.

References LLDB_RECORD_CONSTRUCTOR_NO_ARGS.

Referenced by SBSection().

◆ SBSection() [2/2]

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

Definition at line 27 of file SBSection.cpp.

References LLDB_RECORD_CONSTRUCTOR, and SBSection().

◆ ~SBSection()

SBSection::~SBSection ( )

Definition at line 47 of file SBSection.cpp.

Member Function Documentation

◆ FindSubSection()

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

◆ GetByteSize()

lldb::addr_t SBSection::GetByteSize ( )

◆ GetDescription()

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

◆ GetFileAddress()

lldb::addr_t SBSection::GetFileAddress ( )

◆ GetFileByteSize()

uint64_t SBSection::GetFileByteSize ( )

◆ GetFileOffset()

uint64_t SBSection::GetFileOffset ( )

◆ GetLoadAddress()

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

◆ GetName()

const char * SBSection::GetName ( )

◆ GetNumSubSections()

size_t SBSection::GetNumSubSections ( )

◆ GetParent()

lldb::SBSection SBSection::GetParent ( )

◆ 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 LLDB_RECORD_METHOD_CONST_NO_ARGS.

Referenced by lldb_private::repro::RegisterMethods< SBSection >().

◆ GetSectionData() [1/2]

SBData SBSection::GetSectionData ( )

◆ GetSectionData() [2/2]

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

◆ GetSectionType()

SectionType SBSection::GetSectionType ( )

◆ GetSubSectionAtIndex()

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

◆ 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 LLDB_RECORD_METHOD_NO_ARGS.

Referenced by lldb_private::repro::RegisterMethods< SBSection >().

◆ 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 LLDB_RECORD_METHOD.

◆ operator=()

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

Definition at line 39 of file SBSection.cpp.

References LLDB_RECORD_METHOD, and LLDB_RECORD_RESULT.

◆ operator==()

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

Definition at line 253 of file SBSection.cpp.

References LLDB_RECORD_METHOD.

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.


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