Implement support for DW_FORM_sec_offset.
This form denotes references to other debug sections, and is sized based on whether the 32 or 64-bit DWARF format is used.
This commit is contained in:
@@ -1262,8 +1262,12 @@ DwarfFile::_ParseEntryAttributes(DataReader& dataReader,
|
|||||||
case DW_FORM_ref_sig8:
|
case DW_FORM_ref_sig8:
|
||||||
value = dataReader.Read<uint64>(0);
|
value = dataReader.Read<uint64>(0);
|
||||||
break;
|
break;
|
||||||
case DW_FORM_indirect:
|
|
||||||
case DW_FORM_sec_offset:
|
case DW_FORM_sec_offset:
|
||||||
|
value = fCurrentCompilationUnit->IsDwarf64()
|
||||||
|
? dataReader.Read<uint64>(0)
|
||||||
|
: (uint64)dataReader.Read<uint32>(0);
|
||||||
|
break;
|
||||||
|
case DW_FORM_indirect:
|
||||||
default:
|
default:
|
||||||
WARNING("Unsupported attribute form: %" B_PRIu32 "\n",
|
WARNING("Unsupported attribute form: %" B_PRIu32 "\n",
|
||||||
attributeForm);
|
attributeForm);
|
||||||
|
|||||||
Reference in New Issue
Block a user