brintos

brintos / llvm-project-archived public Read only

0
0
Text · 828 B · ea0829a Raw
31 lines · plain
1# RUN: yaml2obj %p/Inputs/debug_rnglist_basic.yaml -o %ttest2# RUN: lldb-test breakpoints %ttest %s | FileCheck %s3 4# The following code and invocation were used to produce yaml file,5# which was manually reduced after that.6# clang -O0 -gdwarf-5 test.cpp -o test -fuse-ld=lld -ffunction-sections7#8# //test.cpp:9# int zed() { 10#  return 1;11# }12#13# int main() {14#  return zed();15# }16#17# clang and LLD versions were 8.0.0 (trunk 343487)18#19# Output file contains .debug_rnglists section with basic entries:20# DW_RLE_start_length and DW_RLE_end_of_list.21# If LLDB would not be able to parse the section and entries correctly,22# then reported location would be incorrect.23 24b main25# CHECK-LABEL: b main26# CHECK: Address: {{.*}}`main + 15 at test.cpp:6:927 28b zed29# CHECK-LABEL: b zed30# CHECK: Address: {{.*}}`zed() + 4 at test.cpp:2:231