1# RUN: yaml2obj %p/Inputs/debug_rnglist_offset_pair.yaml -o %ttest 2# RUN: lldb-test breakpoints %ttest %s | FileCheck %s 3 4# The following code and invocation were used to produce asm file, 5# which was manually edited to add DW_RLE_base_address entry. 6# clang -S -g -gdwarf-5 -O1 test.cpp -o test.s 7# Then it was compiled and converted to yaml. 8# 9# int C = 0; 10# void foo(int P) 11# { 12# for (int I = 0; I < 2; ++I) { 13# int *W = &C; 14# *W &= P; 15# } 16# } 17# 18# int main () 19# { 20# foo (1); 21# return 0; 22# } 23# 24# clang and LLD versions were 8.0.0 (trunk 344035) 25# 26# Output file contains .debug_rnglists section with entries: 27# DW_RLE_offset_pair and DW_RLE_base_address. 28 29b foo 30# CHECK-LABEL: b foo 31# CHECK: Address: {{.*}}`foo(int) + 5 at test.cpp:8:8 32 33 34