1 # Test handling of breakpad files with some unusual or erroneous constructs. The
2 # input contains a LINE record which does not belong to any function as well as
3 # a FUNC record without any LINE records.
5 # RUN: yaml2obj %S/Inputs/basic-elf.yaml -o %T/line-table-edgecases.out
6 # RUN: %lldb %T/line-table-edgecases.out \
7 # RUN: -o "target symbols add -s line-table-edgecases.out %S/Inputs/line-table-edgecases.syms" \
8 # RUN: -s %s -o exit | FileCheck %s
10 # Test that line table for func2 was parsed properly:
11 image dump line-table a.c
12 # CHECK-LABEL: Line table for /tmp/a.c
13 # CHECK-NEXT: 0x00000000004000c0: /tmp/a.c:2
14 # CHECK-NEXT: 0x00000000004000c2:
17 # Looking up an address inside func should still work even if it does not result
19 image lookup -a 0x4000b2 -v
20 # CHECK-LABEL: image lookup -a 0x4000b2 -v
21 # CHECK: Summary: line-table-edgecases.out`func + 2