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:
Rene Gollent
2013-07-16 23:00:21 -04:00
parent a074f3547a
commit db935bfbe9
+5 -1
View File
@@ -1262,8 +1262,12 @@ DwarfFile::_ParseEntryAttributes(DataReader& dataReader,
case DW_FORM_ref_sig8:
value = dataReader.Read<uint64>(0);
break;
case DW_FORM_indirect:
case DW_FORM_sec_offset:
value = fCurrentCompilationUnit->IsDwarf64()
? dataReader.Read<uint64>(0)
: (uint64)dataReader.Read<uint32>(0);
break;
case DW_FORM_indirect:
default:
WARNING("Unsupported attribute form: %" B_PRIu32 "\n",
attributeForm);