1 ## This test checks that the debug info contained in the source file
2 ## is fully copied to the destination file when the source and
3 ## destination are the same file.
5 ## Check --no-separate-debug-file.
6 # RUN: yaml2obj %p/Inputs/common.yaml -o %t1
7 # RUN: llvm-dwarfutil --no-separate-debug-file %t1 %t1
8 # RUN: llvm-dwarfdump -a %t1 | FileCheck --check-prefix=CHECK-DEBUG %s
10 ## Check --separate-debug-file.
11 # RUN: yaml2obj %p/Inputs/common.yaml -o %t1
12 # RUN: llvm-dwarfutil --separate-debug-file %t1 %t1
13 # RUN: llvm-objdump --headers %t1 | FileCheck --check-prefix=CHECK-NON-DEBUG %s
14 # RUN: llvm-dwarfdump -a %t1.debug | FileCheck --check-prefix=CHECK-DEBUG %s
16 # CHECK-NON-DEBUG-NOT: .debug_abbrev
17 # CHECK-NON-DEBUG-NOT: .debug_info
18 # CHECK-NON-DEBUG: .gnu_debuglink
19 # CHECK-NON-DEBUG-NOT: .debug_abbrev
20 # CHECK-NON-DEBUG-NOT: .debug_info
22 # CHECK-DEBUG: .debug_abbrev
23 # CHECK-DEBUG: DW_TAG_compile_unit
24 # CHECK-DEBUG: .debug_info
25 # CHECK-DEBUG: DW_TAG_compile_unit
26 # CHECK-DEBUG: DW_AT_producer{{.*}}"by_hand"
27 # CHECK-DEBUG: DW_AT_language{{.*}}DW_LANG_C_plus_plus
28 # CHECK-DEBUG: DW_AT_name{{.*}}"CU1"
29 # CHECK-DEBUG: DW_TAG_class_type
30 # CHECK-DEBUG: DW_AT_name{{.*}}"class1"
31 # CHECK-DEBUG: DW_TAG_base_type
32 # CHECK-DEBUG: DW_AT_name{{.*}}"int"
33 # CHECK-DEBUG: DW_AT_name{{.*}}"char"
34 # CHECK-DEBUG: DW_AT_name{{.*}}"float"
35 # CHECK-DEBUG: DW_TAG_pointer_type
36 # CHECK-DEBUG: DW_TAG_variable
37 # CHECK-DEBUG: DW_AT_name{{.*}}"var1"