23 lines · plain
1# Test handling of breakpad files with some unusual or erroneous constructs. The2# input contains a LINE record which does not belong to any function as well as3# a FUNC record without any LINE records.4 5# RUN: mkdir -p %t.dir6# RUN: yaml2obj %S/Inputs/basic-elf.yaml -o %t.dir/line-table-edgecases.out7# RUN: %lldb %t.dir/line-table-edgecases.out \8# RUN: -o "target symbols add -s line-table-edgecases.out %S/Inputs/line-table-edgecases.syms" \9# RUN: -s %s -o exit | FileCheck %s10 11# Test that line table for func2 was parsed properly:12image dump line-table a.c13# CHECK-LABEL: Line table for /tmp/a.c14# CHECK-NEXT: 0x00000000004000c0: /tmp/a.c:215# CHECK-NEXT: 0x00000000004000c2: 16# CHECK-EMPTY: 17 18# Looking up an address inside func should still work even if it does not result19# in a line entry.20image lookup -a 0x4000b2 -v21# CHECK-LABEL: image lookup -a 0x4000b2 -v22# CHECK: Summary: line-table-edgecases.out`func + 223