LLDB mainline
|
#include <DWARFAbbreviationDeclaration.h>
Public Types | |
enum | { InvalidCode = 0 } |
Public Member Functions | |
DWARFAbbreviationDeclaration () | |
DWARFAbbreviationDeclaration (dw_tag_t tag, uint8_t has_children) | |
dw_uleb128_t | Code () const |
void | SetCode (dw_uleb128_t code) |
dw_tag_t | Tag () const |
bool | HasChildren () const |
size_t | NumAttributes () const |
dw_form_t | GetFormByIndex (uint32_t idx) const |
void | GetAttrAndFormValueByIndex (uint32_t idx, dw_attr_t &attr, DWARFFormValue &form_value) const |
dw_form_t | GetFormByIndexUnchecked (uint32_t idx) const |
uint32_t | FindAttributeIndex (dw_attr_t attr) const |
llvm::Expected< lldb_private::DWARFEnumState > | extract (const lldb_private::DWARFDataExtractor &data, lldb::offset_t *offset_ptr) |
Extract one abbreviation declaration and all of its associated attributes. | |
bool | IsValid () |
Protected Attributes | |
dw_uleb128_t | m_code = InvalidCode |
dw_tag_t | m_tag = llvm::dwarf::DW_TAG_null |
uint8_t | m_has_children = 0 |
DWARFAttribute::collection | m_attributes |
Definition at line 17 of file DWARFAbbreviationDeclaration.h.
anonymous enum |
Enumerator | |
---|---|
InvalidCode |
Definition at line 19 of file DWARFAbbreviationDeclaration.h.
DWARFAbbreviationDeclaration::DWARFAbbreviationDeclaration | ( | ) |
Definition at line 21 of file DWARFAbbreviationDeclaration.cpp.
DWARFAbbreviationDeclaration::DWARFAbbreviationDeclaration | ( | dw_tag_t | tag, |
uint8_t | has_children | ||
) |
Definition at line 23 of file DWARFAbbreviationDeclaration.cpp.
|
inline |
Definition at line 25 of file DWARFAbbreviationDeclaration.h.
References m_code.
Referenced by DWARFAbbreviationDeclarationSet::extract().
llvm::Expected< DWARFEnumState > DWARFAbbreviationDeclaration::extract | ( | const lldb_private::DWARFDataExtractor & | data, |
lldb::offset_t * | offset_ptr | ||
) |
Extract one abbreviation declaration and all of its associated attributes.
Possible return values: DWARFEnumState::Complete - the extraction completed successfully. This was the last abbrev decl in a sequence, and the user should not call this function again. DWARFEnumState::MoreItems - the extraction completed successfully. The user should call this function again to retrieve the next decl. llvm::Error - A parsing error occurred. The debug info is malformed.
Definition at line 28 of file DWARFAbbreviationDeclaration.cpp.
References lldb_private::DataExtractor::GetSLEB128(), lldb_private::DataExtractor::GetU8(), lldb_private::DataExtractor::GetULEB128(), m_attributes, m_code, m_has_children, m_tag, DWARFFormValue::ValueTypeTag::sval, lldb_private::DataExtractor::ValidOffset(), and DWARFFormValue::ValueTypeTag::value.
Referenced by DWARFAbbreviationDeclarationSet::extract().
Definition at line 74 of file DWARFAbbreviationDeclaration.cpp.
References DW_INVALID_INDEX, and m_attributes.
|
inline |
Definition at line 35 of file DWARFAbbreviationDeclaration.h.
References DWARFFormValue::FormRef(), m_attributes, and DWARFFormValue::ValueRef().
Definition at line 30 of file DWARFAbbreviationDeclaration.h.
References m_attributes.
Definition at line 39 of file DWARFAbbreviationDeclaration.h.
References m_attributes.
|
inline |
Definition at line 28 of file DWARFAbbreviationDeclaration.h.
References m_has_children.
bool DWARFAbbreviationDeclaration::IsValid | ( | ) |
Definition at line 69 of file DWARFAbbreviationDeclaration.cpp.
|
inline |
Definition at line 29 of file DWARFAbbreviationDeclaration.h.
References m_attributes.
|
inline |
Definition at line 26 of file DWARFAbbreviationDeclaration.h.
References m_code.
|
inline |
Definition at line 27 of file DWARFAbbreviationDeclaration.h.
References m_tag.
|
protected |
Definition at line 61 of file DWARFAbbreviationDeclaration.h.
Referenced by extract(), FindAttributeIndex(), GetAttrAndFormValueByIndex(), GetFormByIndex(), GetFormByIndexUnchecked(), and NumAttributes().
|
protected |
|
protected |
Definition at line 60 of file DWARFAbbreviationDeclaration.h.
Referenced by extract(), and HasChildren().
|
protected |
Definition at line 59 of file DWARFAbbreviationDeclaration.h.