[all-commits] [llvm/llvm-project] c1184c: Use dSYM's file addr for Sections when it doesn't ...

Jason Molenda via All-commits all-commits at lists.llvm.org
Tue Aug 31 01:35:21 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c1184ca6eb97e0ac5f7b6cdcc99e3905d27f9d95
      https://github.com/llvm/llvm-project/commit/c1184ca6eb97e0ac5f7b6cdcc99e3905d27f9d95
  Author: Jason Molenda <jason at molenda.com>
  Date:   2021-08-31 (Tue, 31 Aug 2021)

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

  Log Message:
  -----------
  Use dSYM's file addr for Sections when it doesn't match binary

When adding a dSYM to a Module and it has different file addresses
from the already-present ObjectFile binary, change the Sections to
use the dSYM's file addresses so the symbol table and DWARF are
properly contained in the Sections.  Previously this was only done
for IsInMemory ObjectFiles, but it's more common than that.

Differential Revision: https://reviews.llvm.org/D108889
rdar://81504400




More information about the All-commits mailing list