mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 10:42:39 +01:00
0d4dd65ccc
This adds an alias for llvm-symbolizer with different defaults so that it can be used as a drop-in replacement for GNU's addr2line. If a substring "addr2line" is found in the tool's name: * it defaults "-i", "-f" and "-C" to OFF; * it uses "--output-style=GNU" by default. Differential Revision: https://reviews.llvm.org/D60067 llvm-svn: 358749
29 lines
1023 B
Plaintext
29 lines
1023 B
Plaintext
This test checks that with --output-style=GNU the tool does not print an empty
|
|
line after the report for an address. The current behavior is preserved for
|
|
--output-style=LLVM or if the option is omitted.
|
|
|
|
RUN: llvm-symbolizer -e %p/Inputs/addr.exe < %p/Inputs/addr.inp \
|
|
RUN: | FileCheck %s --check-prefix=LLVM
|
|
|
|
RUN: llvm-symbolizer --output-style=LLVM -e %p/Inputs/addr.exe < %p/Inputs/addr.inp \
|
|
RUN: | FileCheck %s --check-prefix=LLVM
|
|
|
|
RUN: llvm-symbolizer --output-style=GNU -e %p/Inputs/addr.exe < %p/Inputs/addr.inp \
|
|
RUN: | FileCheck %s --check-prefix=GNU
|
|
|
|
RUN: llvm-addr2line -i -e %p/Inputs/addr.exe < %p/Inputs/addr.inp \
|
|
RUN: | FileCheck %s --check-prefix=GNU
|
|
|
|
RUN: llvm-addr2line --output-style=GNU -i -e %p/Inputs/addr.exe < %p/Inputs/addr.inp \
|
|
RUN: | FileCheck %s --check-prefix=GNU
|
|
|
|
RUN: llvm-addr2line --output-style=LLVM -i -e %p/Inputs/addr.exe < %p/Inputs/addr.inp \
|
|
RUN: | FileCheck %s --check-prefix=LLVM
|
|
|
|
LLVM: x.c:14:0
|
|
LLVM-EMPTY:
|
|
LLVM-NEXT: some text2
|
|
|
|
GNU: x.c:14
|
|
GNU-NEXT: some text2
|