The FileCollector in LLDB collects every files that's used during a debug session when capture is enabled. This ensures that the reproducer only contains the files necessary to reproduce. This approach is not a good fit for the dSYM bundle, which is a directory on disk, but should be treated as a single unit. On macOS LLDB have automatically find the matching dSYM for a binary by its UUID. Having a incomplete dSYM in a reproducer can break debugging even when reproducers are disabled. This patch adds a was to specify a directory of interest to the reproducers. It is called from SymbolVendorMacOSX with the path of the dSYMs used by LLDB. Differential revision: https://reviews.llvm.org/D76672
12 lines
415 B
Plaintext
12 lines
415 B
Plaintext
# REQUIRES: system-darwin
|
|
# Ensure that the reproducers captures the whole dSYM bundle.
|
|
|
|
# RUN: rm -rf %t.repro
|
|
# RUN: %clang_host %S/Inputs/simple.c -g -o %t.out
|
|
# RUN: touch %t.out.dSYM/foo.bar
|
|
|
|
# RUN: %lldb -x -b --capture --capture-path %t.repro %t.out -o 'b main' -o 'run' -o 'reproducer generate'
|
|
|
|
# RUN: %lldb -b -o 'reproducer dump -p files -f %t.repro' | FileCheck %s --check-prefix FILES
|
|
# FILES: foo.bar
|