LLDB  mainline
Public Types | Public Member Functions | Protected Types | Static Protected Member Functions | Protected Attributes | List of all members
DWARFDebugInfo Class Reference

#include <DWARFDebugInfo.h>

Collaboration diagram for DWARFDebugInfo:
Collaboration graph
[legend]

Public Types

enum  { eDumpFlag_Verbose = (1 << 0), eDumpFlag_ShowForm = (1 << 1), eDumpFlag_ShowAncestors }
 
typedef dw_offset_t(* Callback) (SymbolFileDWARF *dwarf2Data, DWARFUnit *cu, DWARFDebugInfoEntry *die, const dw_offset_t next_offset, const uint32_t depth, void *userData)
 

Public Member Functions

 DWARFDebugInfo (lldb_private::DWARFContext &context)
 
void SetDwarfData (SymbolFileDWARF *dwarf2Data)
 
size_t GetNumCompileUnits ()
 
DWARFUnitGetCompileUnitAtIndex (lldb::user_id_t idx)
 
DWARFUnitGetCompileUnitAtOffset (dw_offset_t cu_offset, uint32_t *idx_ptr=NULL)
 
DWARFUnitGetCompileUnitContainingDIEOffset (dw_offset_t die_offset)
 
DWARFUnitGetCompileUnit (const DIERef &die_ref)
 
DWARFDIE GetDIEForDIEOffset (dw_offset_t die_offset)
 
DWARFDIE GetDIE (const DIERef &die_ref)
 
llvm::Expected< DWARFDebugAranges & > GetCompileUnitAranges ()
 

Protected Types

typedef std::vector< DWARFUnitSPCompileUnitColl
 

Static Protected Member Functions

static bool OffsetLessThanCompileUnitOffset (dw_offset_t offset, const DWARFUnitSP &cu_sp)
 

Protected Attributes

SymbolFileDWARFm_dwarf2Data
 
lldb_private::DWARFContextm_context
 
CompileUnitColl m_compile_units
 
std::unique_ptr< DWARFDebugArangesm_cu_aranges_up
 

Detailed Description

Definition at line 31 of file DWARFDebugInfo.h.

Member Typedef Documentation

◆ Callback

typedef dw_offset_t(* DWARFDebugInfo::Callback) (SymbolFileDWARF *dwarf2Data, DWARFUnit *cu, DWARFDebugInfoEntry *die, const dw_offset_t next_offset, const uint32_t depth, void *userData)

Definition at line 33 of file DWARFDebugInfo.h.

◆ CompileUnitColl

typedef std::vector<DWARFUnitSP> DWARFDebugInfo::CompileUnitColl
protected

Definition at line 64 of file DWARFDebugInfo.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
eDumpFlag_Verbose 
eDumpFlag_ShowForm 
eDumpFlag_ShowAncestors 

Definition at line 51 of file DWARFDebugInfo.h.

Constructor & Destructor Documentation

◆ DWARFDebugInfo()

DWARFDebugInfo::DWARFDebugInfo ( lldb_private::DWARFContext context)
explicit

Definition at line 31 of file DWARFDebugInfo.cpp.

Member Function Documentation

◆ GetCompileUnit()

DWARFUnit * DWARFDebugInfo::GetCompileUnit ( const DIERef die_ref)

◆ GetCompileUnitAranges()

llvm::Expected< DWARFDebugAranges & > DWARFDebugInfo::GetCompileUnitAranges ( )

◆ GetCompileUnitAtIndex()

DWARFUnit * DWARFDebugInfo::GetCompileUnitAtIndex ( lldb::user_id_t  idx)

◆ GetCompileUnitAtOffset()

DWARFUnit * DWARFDebugInfo::GetCompileUnitAtOffset ( dw_offset_t  cu_offset,
uint32_t idx_ptr = NULL 
)

◆ GetCompileUnitContainingDIEOffset()

DWARFUnit * DWARFDebugInfo::GetCompileUnitContainingDIEOffset ( dw_offset_t  die_offset)

◆ GetDIE()

DWARFDIE DWARFDebugInfo::GetDIE ( const DIERef die_ref)

◆ GetDIEForDIEOffset()

DWARFDIE DWARFDebugInfo::GetDIEForDIEOffset ( dw_offset_t  die_offset)

◆ GetNumCompileUnits()

size_t DWARFDebugInfo::GetNumCompileUnits ( )

◆ OffsetLessThanCompileUnitOffset()

bool DWARFDebugInfo::OffsetLessThanCompileUnitOffset ( dw_offset_t  offset,
const DWARFUnitSP cu_sp 
)
staticprotected

Definition at line 121 of file DWARFDebugInfo.cpp.

References DW_INVALID_OFFSET, and m_compile_units.

◆ SetDwarfData()

void DWARFDebugInfo::SetDwarfData ( SymbolFileDWARF dwarf2Data)

Definition at line 36 of file DWARFDebugInfo.cpp.

References m_compile_units, and m_dwarf2Data.

Member Data Documentation

◆ m_compile_units

CompileUnitColl DWARFDebugInfo::m_compile_units
protected

◆ m_context

lldb_private::DWARFContext& DWARFDebugInfo::m_context
protected

Definition at line 68 of file DWARFDebugInfo.h.

Referenced by GetCompileUnitAranges().

◆ m_cu_aranges_up

std::unique_ptr<DWARFDebugAranges> DWARFDebugInfo::m_cu_aranges_up
protected

Definition at line 71 of file DWARFDebugInfo.h.

Referenced by GetCompileUnitAranges().

◆ m_dwarf2Data

SymbolFileDWARF* DWARFDebugInfo::m_dwarf2Data
protected

Definition at line 67 of file DWARFDebugInfo.h.

Referenced by GetCompileUnitAranges(), and SetDwarfData().


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