Debian Codegraph @

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

raw
1 # RUN: yaml2obj %s -o %t.o
2 # RUN: not llvm-dwarfdump -debug-info -verify %t.o | FileCheck %s
3
4 # CHECK: Verifying non-dwo Units...
5 # CHECK-NEXT: Verifying unit: 1 / 1
6 # CHECK-NEXT: error: DW_FORM_strp offset 4660 is beyond .debug_str bounds:
7
8 --- !ELF
9 FileHeader:
10 Class: ELFCLASS64
11 Data: ELFDATA2LSB
12 Type: ET_EXEC
13 DWARF:
14 debug_str:
15 - ''
16 debug_abbrev:
17 - Table:
18 - Code: 0x00000001
19 Tag: DW_TAG_compile_unit
20 Children: DW_CHILDREN_no
21 Attributes:
22 - Attribute: DW_AT_name
23 Form: DW_FORM_strp
24 debug_info:
25 - Version: 4
26 AddrSize: 8
27 Entries:
28 - AbbrCode: 0x00000001
29 Values:
30 - Value: 0x0000000000001234