reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.cpp
  747   header.m_offset = *offset_ptr;
  748   header.m_length = data.GetDWARFInitialLength(offset_ptr);
  749   header.m_version = data.GetU16(offset_ptr);
  750   if (header.m_version == 5) {
  751     header.m_unit_type = data.GetU8(offset_ptr);
  752     header.m_addr_size = data.GetU8(offset_ptr);
  753     header.m_abbr_offset = data.GetDWARFOffset(offset_ptr);
  754     if (header.m_unit_type == llvm::dwarf::DW_UT_skeleton)
  755       header.m_dwo_id = data.GetU64(offset_ptr);
  757     header.m_abbr_offset = data.GetDWARFOffset(offset_ptr);
  758     header.m_addr_size = data.GetU8(offset_ptr);
  759     header.m_unit_type =
  763   if (header.IsTypeUnit()) {
  764     header.m_type_hash = data.GetU64(offset_ptr);
  765     header.m_type_offset = data.GetDWARFOffset(offset_ptr);
  768   bool length_OK = data.ValidOffset(header.GetNextUnitOffset() - 1);
  769   bool version_OK = SymbolFileDWARF::SupportedVersion(header.m_version);
  770   bool addr_size_OK = (header.m_addr_size == 4) || (header.m_addr_size == 8);
  770   bool addr_size_OK = (header.m_addr_size == 4) || (header.m_addr_size == 8);
  772       !header.IsTypeUnit() || (header.m_type_offset <= header.GetLength());
  772       !header.IsTypeUnit() || (header.m_type_offset <= header.GetLength());
  772       !header.IsTypeUnit() || (header.m_type_offset <= header.GetLength());
  787   return header;