brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · 754ec4e Raw
33 lines · plain
1# Verify we can successfully verify .debug_names with split DWARF.2#3# RUN: rm -rf %t1/4# RUN: mkdir %t15# RUN: yaml2obj %p/Inputs/verify_split_dwarf_debug_names_exe.yaml > %t1/a.out6# RUN: yaml2obj %p/Inputs/verify_split_dwarf_debug_names_main_dwo.yaml > %t1/main.dwo7# RUN: cd %t18# RUN: llvm-dwarfdump --verify %t1/a.out | FileCheck %s9 10# CHECK: Verifying unit: 1 / 111# CHECK: Verifying dwo Units...12# CHECK: Verifying .debug_line...13# CHECK: Verifying .debug_str_offsets...14# CHECK: Verifying .debug_names...15# CHECK: No errors.16 17# Now verify if we remove the "main.dwo" file that we get an error letting us18# know that the .dwo file was not able to be found.19# RUN: rm %t1/main.dwo20# RUN: not llvm-dwarfdump --verify %t1/a.out | FileCheck --check-prefix=NODWO %s21 22# NODWO: Verifying unit: 1 / 123# NODWO: Verifying dwo Units...24# NODWO: Verifying .debug_line...25# NODWO: Verifying .debug_str_offsets...26# NODWO: Verifying .debug_names...27# NODWO: error: Name Index @ 0x0: Entry @ 0x79 unable to load .dwo file "main.dwo" for DWARF unit @ 0x0.28# NODWO: error: Name Index @ 0x0: Entry @ 0x7f unable to load .dwo file "main.dwo" for DWARF unit @ 0x0.29# NODWO: error: Name Index @ 0x0: Entry @ 0x85 unable to load .dwo file "main.dwo" for DWARF unit @ 0x0.30# NODWO: error: Aggregated error counts:31# NODWO: error: Unable to get load .dwo file occurred 3 time(s).32# NODWO: Errors detected.33