LLDB mainline
|
#include <SBSection.h>
Public Member Functions | |
SBSection () | |
SBSection (const lldb::SBSection &rhs) | |
~SBSection () | |
const lldb::SBSection & | operator= (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 () |
Return the size of a target's byte represented by this section in numbers of host bytes. | |
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 §ion_sp) | |
lldb::SectionSP | GetSP () const |
void | SetSP (const lldb::SectionSP §ion_sp) |
Private Attributes | |
lldb::SectionWP | m_opaque_wp |
Friends | |
class | SBAddress |
class | SBModule |
class | SBTarget |
Definition at line 17 of file SBSection.h.
SBSection::SBSection | ( | ) |
Definition at line 23 of file SBSection.cpp.
References LLDB_INSTRUMENT_VA.
Referenced by operator!=(), operator=(), operator==(), SBSection(), and SBTarget.
SBSection::SBSection | ( | const lldb::SBSection & | rhs | ) |
Definition at line 25 of file SBSection.cpp.
References LLDB_INSTRUMENT_VA, m_opaque_wp, and SBSection().
|
default |
|
private |
Definition at line 29 of file SBSection.cpp.
References m_opaque_wp.
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().
uint32_t SBSection::GetAlignment | ( | ) |
Return the alignment of the section in bytes.
Definition at line 220 of file SBSection.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
Referenced by ~SBSection().
lldb::addr_t SBSection::GetByteSize | ( | ) |
Definition at line 140 of file SBSection.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
Referenced by ~SBSection().
bool SBSection::GetDescription | ( | lldb::SBStream & | description | ) |
Definition at line 247 of file SBSection.cpp.
References lldb_private::Stream::AsRawOstream(), GetSP(), LLDB_INSTRUMENT_VA, lldb_private::Stream::Printf(), lldb_private::Stream::PutCString(), and lldb::SBStream::ref().
Referenced by ~SBSection().
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().
uint64_t SBSection::GetFileByteSize | ( | ) |
Definition at line 164 of file SBSection.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
Referenced by ~SBSection().
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().
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().
const char * SBSection::GetName | ( | ) |
Definition at line 56 of file SBSection.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
size_t SBSection::GetNumSubSections | ( | ) |
Definition at line 93 of file SBSection.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
Referenced by ~SBSection().
lldb::SBSection SBSection::GetParent | ( | ) |
Definition at line 65 of file SBSection.cpp.
References GetSP(), LLDB_INSTRUMENT_VA, and SetSP().
Referenced by ~SBSection().
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
Definition at line 202 of file SBSection.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
SBData SBSection::GetSectionData | ( | ) |
Definition at line 173 of file SBSection.cpp.
References GetSectionData(), LLDB_INSTRUMENT_VA, and UINT64_MAX.
Referenced by GetSectionData(), and ~SBSection().
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().
SectionType SBSection::GetSectionType | ( | ) |
Definition at line 193 of file SBSection.cpp.
References lldb::eSectionTypeInvalid, GetSP(), and LLDB_INSTRUMENT_VA.
|
private |
Definition at line 112 of file SBSection.cpp.
References m_opaque_wp.
Referenced by lldb::SBTarget::ClearSectionLoadAddress(), FindSubSection(), GetAlignment(), GetByteSize(), GetDescription(), GetFileAddress(), GetFileByteSize(), GetFileOffset(), GetLoadAddress(), GetName(), GetNumSubSections(), GetParent(), GetPermissions(), GetSectionData(), GetSectionType(), GetSubSectionAtIndex(), GetTargetByteSize(), operator bool(), operator!=(), operator==(), SBTarget, lldb::SBAddress::SetAddress(), and lldb::SBTarget::SetSectionLoadAddress().
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().
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.
Definition at line 211 of file SBSection.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
bool SBSection::IsValid | ( | ) | const |
Definition at line 45 of file SBSection.cpp.
References LLDB_INSTRUMENT_VA.
Referenced by lldb::SBTarget::ClearSectionLoadAddress(), lldb::SBTarget::SetSectionLoadAddress(), and ~SBSection().
|
explicit |
Definition at line 49 of file SBSection.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
bool SBSection::operator!= | ( | const lldb::SBSection & | rhs | ) |
Definition at line 239 of file SBSection.cpp.
References GetSP(), LLDB_INSTRUMENT_VA, and SBSection().
Referenced by ~SBSection().
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().
bool SBSection::operator== | ( | const lldb::SBSection & | rhs | ) |
Definition at line 229 of file SBSection.cpp.
References GetSP(), LLDB_INSTRUMENT_VA, and SBSection().
Referenced by ~SBSection().
|
private |
Definition at line 114 of file SBSection.cpp.
References m_opaque_wp.
Referenced by lldb::SBModule::FindSection(), FindSubSection(), GetParent(), lldb::SBAddress::GetSection(), lldb::SBModule::GetSectionAtIndex(), GetSubSectionAtIndex(), and SBTarget.
|
friend |
|
friend |
|
friend |
Definition at line 94 of file SBSection.h.
References GetSP(), SBSection(), SBTarget, and SetSP().
Referenced by SBTarget.
|
private |
Definition at line 102 of file SBSection.h.
Referenced by GetSP(), operator=(), SBSection(), SBSection(), and SetSP().