brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.0 KiB · 2b48954 Raw
19 lines · plain
1# REQUIRES: system-linux2 3# RUN: llvm-mc -dwarf-version=5 -filetype=obj -triple x86_64-unknown-linux %p/Inputs/dwarf5-call-pc-function-null-check-main.s -o %tmain.o4# RUN: llvm-mc -dwarf-version=5 -filetype=obj -triple x86_64-unknown-linux %p/Inputs/dwarf5-call-pc-function-null-check-helper.s -o %thelper.o5# RUN: %clang %cflags -dwarf-5 %tmain.o %thelper.o -o %t.exe -Wl,-q6# RUN: llvm-bolt %t.exe -o %t.exe.bolt --update-debug-sections --debug-thread-count=4 --cu-processing-batch-size=47# RUN: llvm-dwarfdump --show-form --verbose --debug-info %t.exe > %t.txt8# RUN: llvm-dwarfdump --show-form --verbose --debug-info %t.exe.bolt >> %t.txt9# RUN: cat %t.txt | FileCheck --check-prefix=CHECK %s10 11## Test checks we correctly handle nullptr returned by getBinaryFunctionContainingAddress for DW_AT_call_pc.12## This happens when address is not contained in any function.13 14# CHECK: DW_AT_call_pc [DW_FORM_addrx]15# CHECK-SAME: address = 0x[[#%.16x,ADDR:]]16 17# CHECK: DW_AT_call_pc [DW_FORM_addrx]18# CHECK-SAME: address = 0x[[#ADDR]]19