[all-commits] [llvm/llvm-project] 1704c8: [lldb][MachO] Fix section type recognition for new...

Felipe de Azevedo Piovezan via All-commits all-commits at lists.llvm.org
Wed Jun 21 10:25:35 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1704c8d1047d75e0f17736de146281d68fe7b203
      https://github.com/llvm/llvm-project/commit/1704c8d1047d75e0f17736de146281d68fe7b203
  Author: Felipe de Azevedo Piovezan <fpiovezan at apple.com>
  Date:   2023-06-21 (Wed, 21 Jun 2023)

  Changed paths:
    M lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp

  Log Message:
  -----------
  [lldb][MachO] Fix section type recognition for new DWARF 5 sections

When LLDB needs to access a debug section, it generally calls
SectionList::FindSectionByType with the corresponding type (we have one type for
each DWARF section). However, the missing entries made some sections be
classified as "eSectionTypeOther", which makes all calls to `FindSectionByType`
fail.

With this patch, a check-lldb build with
`-DLLDB_TEST_USER_ARGS=--dwarf-version=5` reports a much lower number of
failures:

  Unsupported      :  327
  Passed           : 2423
  Expectedly Failed:   16
  Unresolved       :    2
  Failed           :   52

This is down from previously 400~ failures.

Differential Revision: https://reviews.llvm.org/D153433




More information about the All-commits mailing list