[PATCH] D94460: [dsymutil] Copy eh_frame content into the dSYM companion file.

Jonas Devlieghere via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 11 16:17:16 PST 2021


JDevlieghere created this revision.
JDevlieghere added reviewers: friss, aprantl, avl.
Herald added a reviewer: alexshap.
JDevlieghere requested review of this revision.
Herald added a project: LLVM.

Copy over the `__eh_frame` from the binary into the dSYM. This helps kernel developers that are working with only dSYMs (i.e. no binaries) when debugging a core file. This only kicks in when the `__eh_frame` exists in the linked binary. Most of the time `ld64` will remove the section in favor of compact unwind info. When it is emitted, it's generally small enough and should not bloat the dSYM.

rdar://69774935


https://reviews.llvm.org/D94460

Files:
  llvm/test/tools/dsymutil/Inputs/private/tmp/eh_frame/eh_frame.o
  llvm/test/tools/dsymutil/Inputs/private/tmp/eh_frame/eh_frame.out
  llvm/test/tools/dsymutil/X86/eh_frame.test
  llvm/tools/dsymutil/MachOUtils.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94460.315961.patch
Type: text/x-patch
Size: 7168 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210112/454ef32a/attachment.bin>


More information about the llvm-commits mailing list