Files
clang-p2996/lldb/test/Shell/SymbolFile/DWARF/x86/dwarf5-macho.c
Adrian Prantl 27fac4a72a Add support for __debug_line_str in Mach-O
This patch resolves an issue that currently accounts for the vast
majority of failures on the matrix bot.

Differential Revision: https://reviews.llvm.org/D152872
2023-06-14 08:37:08 -07:00

16 lines
509 B
C

// Test that the file names in the __debug_line_str section can be decoded.
// REQUIRES: system-darwin
// RUN: %clang -target x86_64-apple-darwin %s -c -o %t.o -gdwarf-5
// RUN: llvm-readobj --sections %t.o | FileCheck %s --check-prefix NAMES
// RUN: xcrun %clang -target x86_64-apple-darwin -o %t.exe %t.o
// RUN: %lldb %t.exe -b -o "target modules dump line-table %s" | FileCheck %s
// NAMES: Name: __debug_line_str
int main(int argc, char **argv) {
// CHECK: dwarf5-macho.c:[[@LINE+1]]
return 0;
}