LLDB  mainline
Public Member Functions | Private Attributes | List of all members
DWARFAbbreviationDeclarationSet Class Reference

#include <DWARFDebugAbbrev.h>

Collaboration diagram for DWARFAbbreviationDeclarationSet:
Collaboration graph
[legend]

Public Member Functions

 DWARFAbbreviationDeclarationSet ()
 
 DWARFAbbreviationDeclarationSet (dw_offset_t offset, uint32_t idx_offset)
 
void Clear ()
 
dw_offset_t GetOffset () const
 
llvm::Error extract (const lldb_private::DWARFDataExtractor &data, lldb::offset_t *offset_ptr)
 Extract all abbrev decls in a set. More...
 
void GetUnsupportedForms (std::set< dw_form_t > &invalid_forms) const
 
const DWARFAbbreviationDeclarationGetAbbreviationDeclaration (dw_uleb128_t abbrCode) const
 
uint32_t GetIndexOffset () const
 Unit test accessor functions. More...
 

Private Attributes

dw_offset_t m_offset
 
uint32_t m_idx_offset
 
std::vector< DWARFAbbreviationDeclarationm_decls
 

Detailed Description

Definition at line 27 of file DWARFDebugAbbrev.h.

Constructor & Destructor Documentation

◆ DWARFAbbreviationDeclarationSet() [1/2]

DWARFAbbreviationDeclarationSet::DWARFAbbreviationDeclarationSet ( )
inline

Definition at line 29 of file DWARFDebugAbbrev.h.

◆ DWARFAbbreviationDeclarationSet() [2/2]

DWARFAbbreviationDeclarationSet::DWARFAbbreviationDeclarationSet ( dw_offset_t  offset,
uint32_t  idx_offset 
)
inline

Definition at line 32 of file DWARFDebugAbbrev.h.

References Clear().

Member Function Documentation

◆ Clear()

void DWARFAbbreviationDeclarationSet::Clear ( )

Definition at line 18 of file DWARFDebugAbbrev.cpp.

Referenced by DWARFAbbreviationDeclarationSet().

◆ extract()

llvm::Error DWARFAbbreviationDeclarationSet::extract ( const lldb_private::DWARFDataExtractor data,
lldb::offset_t offset_ptr 
)

Extract all abbrev decls in a set.

Returns llvm::ErrorSuccess() on success, and an appropriate llvm::Error object otherwise.

Definition at line 25 of file DWARFDebugAbbrev.cpp.

References DWARFAbbreviationDeclaration::Code(), DWARFAbbreviationDeclaration::extract(), and UINT32_MAX.

Referenced by GetOffset(), and DWARFDebugAbbrev::parse().

◆ GetAbbreviationDeclaration()

const DWARFAbbreviationDeclaration * DWARFAbbreviationDeclarationSet::GetAbbreviationDeclaration ( dw_uleb128_t  abbrCode) const

Definition at line 53 of file DWARFDebugAbbrev.cpp.

References UINT32_MAX.

Referenced by DWARFDebugInfoEntry::GetAbbreviationDeclarationPtr(), and GetOffset().

◆ GetIndexOffset()

uint32_t DWARFAbbreviationDeclarationSet::GetIndexOffset ( ) const
inline

Unit test accessor functions.

Definition at line 50 of file DWARFDebugAbbrev.h.

References m_idx_offset.

◆ GetOffset()

dw_offset_t DWARFAbbreviationDeclarationSet::GetOffset ( ) const
inline

◆ GetUnsupportedForms()

void DWARFAbbreviationDeclarationSet::GetUnsupportedForms ( std::set< dw_form_t > &  invalid_forms) const

Definition at line 72 of file DWARFDebugAbbrev.cpp.

References DWARFFormValue::FormIsSupported().

Referenced by GetOffset().

Member Data Documentation

◆ m_decls

std::vector<DWARFAbbreviationDeclaration> DWARFAbbreviationDeclarationSet::m_decls
private

Definition at line 55 of file DWARFDebugAbbrev.h.

◆ m_idx_offset

uint32_t DWARFAbbreviationDeclarationSet::m_idx_offset
private

Definition at line 54 of file DWARFDebugAbbrev.h.

Referenced by GetIndexOffset().

◆ m_offset

dw_offset_t DWARFAbbreviationDeclarationSet::m_offset
private

Definition at line 53 of file DWARFDebugAbbrev.h.

Referenced by GetOffset().


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