When dsymutil generates the companion file, its strips all unnecessary sections by omitting their body and setting the offset in their corresponding load command to zero. One such section is the .eh_frame section, as it contains runtime information rather than debug information and is part of the __TEXT segment. When reading this section, we would just read the number of bytes specified in the load command, starting from offset 0 (i.e. the beginning of the file). Rather than trying to parse this obviously invalid section, dwarfdump now skips this. Differential revision: https://reviews.llvm.org/D38135 llvm-svn: 314208
12 lines
275 B
Plaintext
12 lines
275 B
Plaintext
RUN: llvm-dwarfdump -debug-frame %S/Inputs/empty.dSYM | FileCheck %s
|
|
|
|
You can generate an empty dSYM companion file by invoking dsymutil on any
|
|
object file.
|
|
|
|
CHECK: .debug_frame contents:
|
|
CHECK-NOT: CIE
|
|
CHECK-NOT: FDE
|
|
CHECK: .eh_frame contents:
|
|
CHECK-NOT: CIE
|
|
CHECK-NOT: FDE
|