This adds a BUILD_ID prefix to the llvm-symbolizer stdin and argument syntax. The prefix causes the given binary name to be interpreted as a build ID instead of an object file path. The semantics are analagous to the behavior of --obj and --build-id. Reviewed By: jhenderson Differential Revision: https://reviews.llvm.org/D119901
10 lines
432 B
Plaintext
10 lines
432 B
Plaintext
# The FILE prefix acts as a no-op, but it provides consistency with BUILDID.
|
|
RUN: llvm-symbolizer "CODE FILE:%p/Inputs/addr.exe 0x40054d" | \
|
|
RUN: FileCheck %s --check-prefix=FOUND
|
|
FOUND: {{[/\]+}}tmp{{[/\]+}}x.c:14:0
|
|
|
|
# Passing FILE twice is a syntax error.
|
|
RUN: llvm-symbolizer "CODE FILE:FILE:%p/Inputs/addr.exe 0x40054d" | \
|
|
RUN: FileCheck %s --check-prefix=FILEFILE
|
|
FILEFILE: CODE FILE:FILE:{{.*}}/Inputs/addr.exe 0x40054d
|