• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# REQUIRES: shell
2# Ensures that .debuglink can fallback to a separate location. This is normally
3# /usr/lib/debug (or /usr/libdata/debug for NetBSD), but can be configured on
4# the command line (mainly for testing).
5
6RUN: rm -rf %t/foo %t/bar
7RUN: mkdir -p %t/foo %t/bar/%t/foo
8
9RUN: cp %p/Inputs/dwarfdump-test.elf-x86-64.debuglink %t/foo
10
11RUN: llvm-symbolizer --obj=%t/foo/dwarfdump-test.elf-x86-64.debuglink 0x40113f \
12RUN:   --fallback-debug-path=%t/bar | FileCheck %s --check-prefix=UNKNOWN
13
14UNKNOWN:      main
15UNKNOWN-NEXT: ??:0:0
16
17RUN: cp %p/Inputs/dwarfdump-test.elf-x86-64 %t/bar/%t/foo
18RUN: llvm-symbolizer --obj=%t/foo/dwarfdump-test.elf-x86-64.debuglink 0x40113f \
19RUN:   --fallback-debug-path=%t/bar | FileCheck %s --check-prefix=FOUND
20
21FOUND:      main
22FOUND-NEXT: /tmp/dbginfo{{[/\\]}}dwarfdump-test.cc:16
23