brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.8 KiB · 03ba63b Raw
37 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_ftus_exe.yaml > %t1/a.out6# RUN: yaml2obj %p/Inputs/verify_split_dwarf_debug_names_ftus_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 @ 0xbf unable to load .dwo file "main.dwo" for DWARF unit @ 0x0.28# NODWO: error: Name Index @ 0x0: Entry @ 0xc6 unable to load .dwo file "main.dwo" for DWARF unit @ 0x0.29# NODWO: error: Name Index @ 0x0: Entry @ 0xcd unable to load .dwo file "main.dwo" for DWARF unit @ 0x0.30# NODWO: error: Name Index @ 0x0: Entry @ 0xd3 unable to load .dwo file "main.dwo" for DWARF unit @ 0x0.31# NODWO: error: Name Index @ 0x0: Entry @ 0xde unable to load .dwo file "main.dwo" for DWARF unit @ 0x0.32# NODWO: error: Name Index @ 0x0: Entry @ 0xe4 unable to load .dwo file "main.dwo" for DWARF unit @ 0x0.33# NODWO: error: Name Index @ 0x0: Entry @ 0xea unable to load .dwo file "main.dwo" for DWARF unit @ 0x0.34# NODWO: error: Aggregated error counts:35# NODWO: error: Unable to get load .dwo file occurred 7 time(s).36# NODWO: Errors detected.37