LLDB  mainline
Public Member Functions | Public Attributes | List of all members
ELFNote Struct Reference

#include <ObjectFileELF.h>

Collaboration diagram for ELFNote:
Collaboration graph
[legend]

Public Member Functions

 ELFNote ()=default
 
bool Parse (const lldb_private::DataExtractor &data, lldb::offset_t *offset)
 Parse an ELFNote entry from the given DataExtractor starting at position offset. More...
 
size_t GetByteSize () const
 

Public Attributes

elf::elf_word n_namesz = 0
 
elf::elf_word n_descsz = 0
 
elf::elf_word n_type = 0
 
std::string n_name
 

Detailed Description

Definition at line 24 of file ObjectFileELF.h.

Constructor & Destructor Documentation

◆ ELFNote()

ELFNote::ELFNote ( )
default

Member Function Documentation

◆ GetByteSize()

size_t ELFNote::GetByteSize ( ) const
inline

Definition at line 47 of file ObjectFileELF.h.

References n_descsz, and n_namesz.

Referenced by ObjectFileELF::RefineModuleDetailsFromNote().

◆ Parse()

bool ELFNote::Parse ( const lldb_private::DataExtractor data,
lldb::offset_t offset 
)

Parse an ELFNote entry from the given DataExtractor starting at position offset.

Parameters
[in]dataThe DataExtractor to read from.
[in,out]offsetPointer to an offset in the data. On return the offset will be advanced by the number of bytes read.
Returns
True if the ELFRel entry was successfully read and false otherwise.

Definition at line 216 of file ObjectFileELF.cpp.

References lldb_private::DataExtractor::ExtractBytes(), lldb_private::DataExtractor::GetByteOrder(), lldb_private::DataExtractor::GetCStr(), lldb_private::GetLogIfAllCategoriesSet(), lldb_private::DataExtractor::GetU32(), LIBLLDB_LOG_SYMBOLS, and LLDB_LOGF.

Referenced by ProcessElfCore::parseSegment(), and ObjectFileELF::RefineModuleDetailsFromNote().

Member Data Documentation

◆ n_descsz

elf::elf_word ELFNote::n_descsz = 0

◆ n_name

std::string ELFNote::n_name

Definition at line 29 of file ObjectFileELF.h.

Referenced by ObjectFileELF::RefineModuleDetailsFromNote().

◆ n_namesz

elf::elf_word ELFNote::n_namesz = 0

Definition at line 25 of file ObjectFileELF.h.

Referenced by GetByteSize(), and ObjectFileELF::RefineModuleDetailsFromNote().

◆ n_type

elf::elf_word ELFNote::n_type = 0

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