This adds a --build-id=<hex build ID> flag to llvm-symbolizer. If --obj is unspecified, this will attempt to look up the provided build ID using whatever mechanisms are available to the Symbolizer (typically, debuginfod). The semantics are then as if the found binary were given using the --obj flag. Reviewed By: jhenderson, phosek Differential Revision: https://reviews.llvm.org/D118633
11 lines
317 B
Plaintext
11 lines
317 B
Plaintext
RUN: llvm-symbolizer --build-id=abad 0x1234 0x5678 > %t.stdout 2> %t.stderr
|
|
RUN: FileCheck %s --check-prefix=STDOUT < %t.stdout
|
|
RUN: FileCheck %s --check-prefix=STDERR < %t.stderr
|
|
|
|
STDOUT: ??
|
|
STDOUT: ??:0:0
|
|
STDOUT: ??
|
|
STDOUT: ??:0:0
|
|
|
|
STDERR-COUNT-2: LLVMSymbolizer: error reading file: could not find build ID 'ABAD'
|