forked from OSchip/llvm-project
parent
cd16e559d2
commit
a041d8483c
|
@ -657,6 +657,7 @@ enum SectionType {
|
|||
// address
|
||||
eSectionTypeDWARFGNUDebugAltLink,
|
||||
eSectionTypeDWARFDebugTypes, // DWARF .debug_types section
|
||||
eSectionTypeDWARFDebugNames, // DWARF v5 .debug_names
|
||||
eSectionTypeOther
|
||||
};
|
||||
|
||||
|
|
|
@ -14,6 +14,11 @@
|
|||
# CHECK-NEXT: VM size: 0
|
||||
# CHECK-NEXT: File size: 8
|
||||
|
||||
# CHECK: Name: .debug_names
|
||||
# CHECK-NEXT: Type: dwarf-names
|
||||
# CHECK-NEXT: VM size: 0
|
||||
# CHECK-NEXT: File size: 8
|
||||
|
||||
# CHECK: Name: .gnu_debugaltlink
|
||||
# CHECK-NEXT: Type: dwarf-gnu-debugaltlink
|
||||
# CHECK-NEXT: VM size: 0
|
||||
|
@ -42,6 +47,10 @@ Sections:
|
|||
Type: SHT_PROGBITS
|
||||
AddressAlign: 0x0000000000000001
|
||||
Content: DEADBEEFBAADF00D
|
||||
- Name: .debug_names
|
||||
Type: SHT_PROGBITS
|
||||
AddressAlign: 0x0000000000000001
|
||||
Content: DEADBEEFBAADF00D
|
||||
- Name: .gnu_debugaltlink
|
||||
Type: SHT_PROGBITS
|
||||
AddressAlign: 0x0000000000000001
|
||||
|
|
|
@ -91,6 +91,8 @@ const char *Section::GetTypeAsCString() const {
|
|||
return "dwarf-str-offsets";
|
||||
case eSectionTypeDWARFDebugTypes:
|
||||
return "dwarf-types";
|
||||
case eSectionTypeDWARFDebugNames:
|
||||
return "dwarf-names";
|
||||
case eSectionTypeELFSymbolTable:
|
||||
return "elf-symbol-table";
|
||||
case eSectionTypeELFDynamicSymbols:
|
||||
|
|
|
@ -1791,6 +1791,7 @@ void ObjectFileELF::CreateSections(SectionList &unified_section_list) {
|
|||
static ConstString g_sect_name_dwarf_debug_loc(".debug_loc");
|
||||
static ConstString g_sect_name_dwarf_debug_macinfo(".debug_macinfo");
|
||||
static ConstString g_sect_name_dwarf_debug_macro(".debug_macro");
|
||||
static ConstString g_sect_name_dwarf_debug_names(".debug_names");
|
||||
static ConstString g_sect_name_dwarf_debug_pubnames(".debug_pubnames");
|
||||
static ConstString g_sect_name_dwarf_debug_pubtypes(".debug_pubtypes");
|
||||
static ConstString g_sect_name_dwarf_debug_ranges(".debug_ranges");
|
||||
|
@ -1866,6 +1867,8 @@ void ObjectFileELF::CreateSections(SectionList &unified_section_list) {
|
|||
sect_type = eSectionTypeDWARFDebugMacInfo;
|
||||
else if (name == g_sect_name_dwarf_debug_macro)
|
||||
sect_type = eSectionTypeDWARFDebugMacro;
|
||||
else if (name == g_sect_name_dwarf_debug_names)
|
||||
sect_type = eSectionTypeDWARFDebugNames;
|
||||
else if (name == g_sect_name_dwarf_debug_pubnames)
|
||||
sect_type = eSectionTypeDWARFDebugPubNames;
|
||||
else if (name == g_sect_name_dwarf_debug_pubtypes)
|
||||
|
|
|
@ -1200,6 +1200,7 @@ AddressClass ObjectFileMachO::GetAddressClass(lldb::addr_t file_addr) {
|
|||
case eSectionTypeDWARFDebugLoc:
|
||||
case eSectionTypeDWARFDebugMacInfo:
|
||||
case eSectionTypeDWARFDebugMacro:
|
||||
case eSectionTypeDWARFDebugNames:
|
||||
case eSectionTypeDWARFDebugPubNames:
|
||||
case eSectionTypeDWARFDebugPubTypes:
|
||||
case eSectionTypeDWARFDebugRanges:
|
||||
|
@ -1455,6 +1456,7 @@ static lldb::SectionType GetSectionType(uint32_t flags,
|
|||
static ConstString g_sect_name_dwarf_debug_line("__debug_line");
|
||||
static ConstString g_sect_name_dwarf_debug_loc("__debug_loc");
|
||||
static ConstString g_sect_name_dwarf_debug_macinfo("__debug_macinfo");
|
||||
static ConstString g_sect_name_dwarf_debug_names("__debug_names");
|
||||
static ConstString g_sect_name_dwarf_debug_pubnames("__debug_pubnames");
|
||||
static ConstString g_sect_name_dwarf_debug_pubtypes("__debug_pubtypes");
|
||||
static ConstString g_sect_name_dwarf_debug_ranges("__debug_ranges");
|
||||
|
@ -1484,6 +1486,8 @@ static lldb::SectionType GetSectionType(uint32_t flags,
|
|||
return eSectionTypeDWARFDebugLoc;
|
||||
if (section_name == g_sect_name_dwarf_debug_macinfo)
|
||||
return eSectionTypeDWARFDebugMacInfo;
|
||||
if (section_name == g_sect_name_dwarf_debug_names)
|
||||
return eSectionTypeDWARFDebugNames;
|
||||
if (section_name == g_sect_name_dwarf_debug_pubnames)
|
||||
return eSectionTypeDWARFDebugPubNames;
|
||||
if (section_name == g_sect_name_dwarf_debug_pubtypes)
|
||||
|
|
|
@ -692,6 +692,7 @@ void ObjectFilePECOFF::CreateSections(SectionList &unified_section_list) {
|
|||
static ConstString g_sect_name_dwarf_debug_line(".debug_line");
|
||||
static ConstString g_sect_name_dwarf_debug_loc(".debug_loc");
|
||||
static ConstString g_sect_name_dwarf_debug_macinfo(".debug_macinfo");
|
||||
static ConstString g_sect_name_dwarf_debug_names(".debug_names");
|
||||
static ConstString g_sect_name_dwarf_debug_pubnames(".debug_pubnames");
|
||||
static ConstString g_sect_name_dwarf_debug_pubtypes(".debug_pubtypes");
|
||||
static ConstString g_sect_name_dwarf_debug_ranges(".debug_ranges");
|
||||
|
@ -737,6 +738,8 @@ void ObjectFilePECOFF::CreateSections(SectionList &unified_section_list) {
|
|||
section_type = eSectionTypeDWARFDebugLoc;
|
||||
else if (const_sect_name == g_sect_name_dwarf_debug_macinfo)
|
||||
section_type = eSectionTypeDWARFDebugMacInfo;
|
||||
else if (const_sect_name == g_sect_name_dwarf_debug_names)
|
||||
section_type = eSectionTypeDWARFDebugNames;
|
||||
else if (const_sect_name == g_sect_name_dwarf_debug_pubnames)
|
||||
section_type = eSectionTypeDWARFDebugPubNames;
|
||||
else if (const_sect_name == g_sect_name_dwarf_debug_pubtypes)
|
||||
|
|
|
@ -353,6 +353,7 @@ AddressClass ObjectFile::GetAddressClass(addr_t file_addr) {
|
|||
case eSectionTypeDWARFDebugLoc:
|
||||
case eSectionTypeDWARFDebugMacInfo:
|
||||
case eSectionTypeDWARFDebugMacro:
|
||||
case eSectionTypeDWARFDebugNames:
|
||||
case eSectionTypeDWARFDebugPubNames:
|
||||
case eSectionTypeDWARFDebugPubTypes:
|
||||
case eSectionTypeDWARFDebugRanges:
|
||||
|
|
Loading…
Reference in New Issue