Commit ad805ef9 authored by Pavel Labath's avatar Pavel Labath
Browse files

Recognise debug_types.dwo as a debug info section

This is a preparatory patch to allow reading type units from dwo files.

llvm-svn: 363146
parent 31908669
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -684,6 +684,7 @@ enum SectionType {
  eSectionTypeDWARFDebugInfoDwo,
  eSectionTypeDWARFDebugStrDwo,
  eSectionTypeDWARFDebugStrOffsetsDwo,
  eSectionTypeDWARFDebugTypesDwo,
};

FLAGS_ENUM(EmulateInstructionOptions){
+7 −0
Original line number Diff line number Diff line
@@ -10,6 +10,9 @@
# CHECK-LABEL: Name: .debug_types
# CHECK-NEXT: Type: dwarf-types

# CHECK-LABEL: Name: .debug_types.dwo
# CHECK-NEXT: Type: dwarf-types-dwo

# CHECK-LABEL: Name: .debug_names
# CHECK-NEXT: Type: dwarf-names

@@ -51,6 +54,10 @@ Sections:
    Type:            SHT_PROGBITS
    AddressAlign:    0x0000000000000001
    Content:         DEADBEEFBAADF00D
  - Name:            .debug_types.dwo
    Type:            SHT_PROGBITS
    AddressAlign:    0x0000000000000001
    Content:         DEADBEEFBAADF00D
  - Name:            .debug_names
    Type:            SHT_PROGBITS
    AddressAlign:    0x0000000000000001
+2 −0
Original line number Diff line number Diff line
@@ -104,6 +104,8 @@ const char *Section::GetTypeAsCString() const {
    return "dwarf-str-offsets-dwo";
  case eSectionTypeDWARFDebugTypes:
    return "dwarf-types";
  case eSectionTypeDWARFDebugTypesDwo:
    return "dwarf-types-dwo";
  case eSectionTypeDWARFDebugNames:
    return "dwarf-names";
  case eSectionTypeELFSymbolTable:
+1 −0
Original line number Diff line number Diff line
@@ -1705,6 +1705,7 @@ static SectionType GetSectionTypeFromName(llvm::StringRef Name) {
      .Case(".debug_str_offsets", eSectionTypeDWARFDebugStrOffsets)
      .Case(".debug_str_offsets.dwo", eSectionTypeDWARFDebugStrOffsetsDwo)
      .Case(".debug_types", eSectionTypeDWARFDebugTypes)
      .Case(".debug_types.dwo", eSectionTypeDWARFDebugTypesDwo)
      .Case(".eh_frame", eSectionTypeEHFrame)
      .Case(".gnu_debugaltlink", eSectionTypeDWARFGNUDebugAltLink)
      .Case(".gosymtab", eSectionTypeGoSymtab)
+1 −0
Original line number Diff line number Diff line
@@ -1212,6 +1212,7 @@ AddressClass ObjectFileMachO::GetAddressClass(lldb::addr_t file_addr) {
          case eSectionTypeDWARFDebugStrOffsets:
          case eSectionTypeDWARFDebugStrOffsetsDwo:
          case eSectionTypeDWARFDebugTypes:
          case eSectionTypeDWARFDebugTypesDwo:
          case eSectionTypeDWARFAppleNames:
          case eSectionTypeDWARFAppleTypes:
          case eSectionTypeDWARFAppleNamespaces:
Loading