Debian Codegraph @

llvm/test/tools/llvm-dwarfdump/X86/verify_lexical_block_ranges.yaml

raw
1 # RUN: yaml2obj %s -o %t.o
2 # RUN: not llvm-dwarfdump -verify %t.o | FileCheck %s
3
4 # CHECK: Verifying non-dwo Units...
5 # CHECK-NEXT: Verifying unit: 1 / 1, "/tmp/main.c"
6 # CHECK-NEXT: error: DIE address ranges are not contained in its parent's ranges:
7
8 --- !ELF
9 FileHeader:
10 Class: ELFCLASS64
11 Data: ELFDATA2LSB
12 Type: ET_EXEC
13 DWARF:
14 debug_str:
15 - ''
16 - /tmp/main.c
17 - main
18 debug_abbrev:
19 - Table:
20 - Code: 0x00000001
21 Tag: DW_TAG_compile_unit
22 Children: DW_CHILDREN_yes
23 Attributes:
24 - Attribute: DW_AT_name
25 Form: DW_FORM_strp
26 - Code: 0x00000002
27 Tag: DW_TAG_subprogram
28 Children: DW_CHILDREN_yes
29 Attributes:
30 - Attribute: DW_AT_name
31 Form: DW_FORM_strp
32 - Attribute: DW_AT_low_pc
33 Form: DW_FORM_addr
34 - Attribute: DW_AT_high_pc
35 Form: DW_FORM_addr
36 - Code: 0x00000003
37 Tag: DW_TAG_lexical_block
38 Children: DW_CHILDREN_no
39 Attributes:
40 - Attribute: DW_AT_low_pc
41 Form: DW_FORM_addr
42 - Attribute: DW_AT_high_pc
43 Form: DW_FORM_addr
44 debug_info:
45 - Version: 4
46 AddrSize: 8
47 Entries:
48 - AbbrCode: 0x00000001
49 Values:
50 - Value: 0x0000000000000001
51 - AbbrCode: 0x00000002
52 Values:
53 - Value: 0x000000000000000D
54 - Value: 0x0000000000001000
55 - Value: 0x0000000000002000
56 - AbbrCode: 0x00000003
57 Values:
58 - Value: 0x0000000000001000
59 - Value: 0x0000000000002001
60 - AbbrCode: 0x00000000
61 - AbbrCode: 0x00000000