fdeazeve updated this revision to Diff 533281. fdeazeve added a comment. Add missing debug_cu_index and debug_tu_index sections
Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D153433/new/ https://reviews.llvm.org/D153433 Files: lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp Index: lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp =================================================================== --- lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp +++ lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp @@ -1439,7 +1439,9 @@ static ConstString g_sect_name_cfstring("__cfstring"); static ConstString g_sect_name_dwarf_debug_abbrev("__debug_abbrev"); + static ConstString g_sect_name_dwarf_debug_addr("__debug_addr"); static ConstString g_sect_name_dwarf_debug_aranges("__debug_aranges"); + static ConstString g_sect_name_dwarf_debug_cu_index("__debug_cu_index"); static ConstString g_sect_name_dwarf_debug_frame("__debug_frame"); static ConstString g_sect_name_dwarf_debug_info("__debug_info"); static ConstString g_sect_name_dwarf_debug_line("__debug_line"); @@ -1451,7 +1453,10 @@ 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"); + static ConstString g_sect_name_dwarf_debug_rnglists("__debug_rnglists"); static ConstString g_sect_name_dwarf_debug_str("__debug_str"); + static ConstString g_sect_name_dwarf_debug_str_offs("__debug_str_offs"); + static ConstString g_sect_name_dwarf_debug_tu_index("__debug_tu_index"); static ConstString g_sect_name_dwarf_debug_types("__debug_types"); static ConstString g_sect_name_dwarf_apple_names("__apple_names"); static ConstString g_sect_name_dwarf_apple_types("__apple_types"); @@ -1465,8 +1470,12 @@ if (section_name == g_sect_name_dwarf_debug_abbrev) return eSectionTypeDWARFDebugAbbrev; + if (section_name == g_sect_name_dwarf_debug_addr) + return eSectionTypeDWARFDebugAddr; if (section_name == g_sect_name_dwarf_debug_aranges) return eSectionTypeDWARFDebugAranges; + if (section_name == g_sect_name_dwarf_debug_cu_index) + return eSectionTypeDWARFDebugCuIndex; if (section_name == g_sect_name_dwarf_debug_frame) return eSectionTypeDWARFDebugFrame; if (section_name == g_sect_name_dwarf_debug_info) @@ -1489,8 +1498,14 @@ return eSectionTypeDWARFDebugPubTypes; if (section_name == g_sect_name_dwarf_debug_ranges) return eSectionTypeDWARFDebugRanges; + if (section_name == g_sect_name_dwarf_debug_rnglists) + return eSectionTypeDWARFDebugRngLists; if (section_name == g_sect_name_dwarf_debug_str) return eSectionTypeDWARFDebugStr; + if (section_name == g_sect_name_dwarf_debug_str_offs) + return eSectionTypeDWARFDebugStrOffsets; + if (section_name == g_sect_name_dwarf_debug_tu_index) + return eSectionTypeDWARFDebugTuIndex; if (section_name == g_sect_name_dwarf_debug_types) return eSectionTypeDWARFDebugTypes; if (section_name == g_sect_name_dwarf_apple_names)
Index: lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp =================================================================== --- lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp +++ lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp @@ -1439,7 +1439,9 @@ static ConstString g_sect_name_cfstring("__cfstring"); static ConstString g_sect_name_dwarf_debug_abbrev("__debug_abbrev"); + static ConstString g_sect_name_dwarf_debug_addr("__debug_addr"); static ConstString g_sect_name_dwarf_debug_aranges("__debug_aranges"); + static ConstString g_sect_name_dwarf_debug_cu_index("__debug_cu_index"); static ConstString g_sect_name_dwarf_debug_frame("__debug_frame"); static ConstString g_sect_name_dwarf_debug_info("__debug_info"); static ConstString g_sect_name_dwarf_debug_line("__debug_line"); @@ -1451,7 +1453,10 @@ 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"); + static ConstString g_sect_name_dwarf_debug_rnglists("__debug_rnglists"); static ConstString g_sect_name_dwarf_debug_str("__debug_str"); + static ConstString g_sect_name_dwarf_debug_str_offs("__debug_str_offs"); + static ConstString g_sect_name_dwarf_debug_tu_index("__debug_tu_index"); static ConstString g_sect_name_dwarf_debug_types("__debug_types"); static ConstString g_sect_name_dwarf_apple_names("__apple_names"); static ConstString g_sect_name_dwarf_apple_types("__apple_types"); @@ -1465,8 +1470,12 @@ if (section_name == g_sect_name_dwarf_debug_abbrev) return eSectionTypeDWARFDebugAbbrev; + if (section_name == g_sect_name_dwarf_debug_addr) + return eSectionTypeDWARFDebugAddr; if (section_name == g_sect_name_dwarf_debug_aranges) return eSectionTypeDWARFDebugAranges; + if (section_name == g_sect_name_dwarf_debug_cu_index) + return eSectionTypeDWARFDebugCuIndex; if (section_name == g_sect_name_dwarf_debug_frame) return eSectionTypeDWARFDebugFrame; if (section_name == g_sect_name_dwarf_debug_info) @@ -1489,8 +1498,14 @@ return eSectionTypeDWARFDebugPubTypes; if (section_name == g_sect_name_dwarf_debug_ranges) return eSectionTypeDWARFDebugRanges; + if (section_name == g_sect_name_dwarf_debug_rnglists) + return eSectionTypeDWARFDebugRngLists; if (section_name == g_sect_name_dwarf_debug_str) return eSectionTypeDWARFDebugStr; + if (section_name == g_sect_name_dwarf_debug_str_offs) + return eSectionTypeDWARFDebugStrOffsets; + if (section_name == g_sect_name_dwarf_debug_tu_index) + return eSectionTypeDWARFDebugTuIndex; if (section_name == g_sect_name_dwarf_debug_types) return eSectionTypeDWARFDebugTypes; if (section_name == g_sect_name_dwarf_apple_names)
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits