}
}
-typedef uint32_t dw_uleb128_t;
-typedef int32_t dw_sleb128_t;
typedef uint16_t dw_attr_t;
typedef uint16_t dw_form_t;
typedef llvm::dwarf::Tag dw_tag_t;
// For hand crafting an abbreviation declaration
DWARFAbbreviationDeclaration(dw_tag_t tag, uint8_t has_children);
- dw_uleb128_t Code() const { return m_code; }
- void SetCode(dw_uleb128_t code) { m_code = code; }
+ uint32_t Code() const { return m_code; }
+ void SetCode(uint32_t code) { m_code = code; }
dw_tag_t Tag() const { return m_tag; }
bool HasChildren() const { return m_has_children; }
size_t NumAttributes() const { return m_attributes.size(); }
bool IsValid();
protected:
- dw_uleb128_t m_code = InvalidCode;
+ uint32_t m_code = InvalidCode;
dw_tag_t m_tag = llvm::dwarf::DW_TAG_null;
uint8_t m_has_children = 0;
DWARFAttribute::collection m_attributes;
m_offset = begin_offset;
Clear();
DWARFAbbreviationDeclaration abbrevDeclaration;
- dw_uleb128_t prev_abbr_code = 0;
+ uint32_t prev_abbr_code = 0;
while (true) {
llvm::Expected<DWARFEnumState> es =
abbrevDeclaration.extract(data, offset_ptr);
// DWARFAbbreviationDeclarationSet::GetAbbreviationDeclaration()
const DWARFAbbreviationDeclaration *
DWARFAbbreviationDeclarationSet::GetAbbreviationDeclaration(
- dw_uleb128_t abbrCode) const {
+ uint32_t abbrCode) const {
if (m_idx_offset == UINT32_MAX) {
DWARFAbbreviationDeclarationCollConstIter pos;
DWARFAbbreviationDeclarationCollConstIter end = m_decls.end();
return nullptr;
}
-
// DWARFAbbreviationDeclarationSet::GetUnsupportedForms()
void DWARFAbbreviationDeclarationSet::GetUnsupportedForms(
std::set<dw_form_t> &invalid_forms) const {
void GetUnsupportedForms(std::set<dw_form_t> &invalid_forms) const;
const DWARFAbbreviationDeclaration *
- GetAbbreviationDeclaration(dw_uleb128_t abbrCode) const;
+ GetAbbreviationDeclaration(uint32_t abbrCode) const;
/// Unit test accessor functions.
/// @{
// in the .debug_info
case DW_FORM_exprloc:
case DW_FORM_block: {
- dw_uleb128_t size = debug_info_data.GetULEB128(offset_ptr);
+ uint64_t size = debug_info_data.GetULEB128(offset_ptr);
*offset_ptr += size;
}
return true;
case DW_FORM_block1: {
- dw_uleb128_t size = debug_info_data.GetU8(offset_ptr);
+ uint8_t size = debug_info_data.GetU8(offset_ptr);
*offset_ptr += size;
}
return true;
case DW_FORM_block2: {
- dw_uleb128_t size = debug_info_data.GetU16(offset_ptr);
+ uint16_t size = debug_info_data.GetU16(offset_ptr);
*offset_ptr += size;
}
return true;
case DW_FORM_block4: {
- dw_uleb128_t size = debug_info_data.GetU32(offset_ptr);
+ uint32_t size = debug_info_data.GetU32(offset_ptr);
*offset_ptr += size;
}
return true;