Skip to content

Commit c1489ee

Browse files
committed
[llvm-dwarfdump][test] Rewrite verify_die_ranges.s in YAML. NFC.
This patch rewrites test case verify_die_ranges.s in YAML which helps simplify the test. Reviewed By: jhenderson, JDevlieghere, dblaikie Differential Revision: https://reviews.llvm.org/D88200
1 parent dd55499 commit c1489ee

File tree

2 files changed

+28
-80
lines changed

2 files changed

+28
-80
lines changed

llvm/test/tools/llvm-dwarfdump/X86/verify_die_ranges.s

Lines changed: 0 additions & 80 deletions
This file was deleted.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# RUN: yaml2obj %s -o %t.o
2+
# RUN: not llvm-dwarfdump -verify %t.o | FileCheck %s
3+
4+
# CHECK: Verifying .debug_info Unit Header Chain...
5+
# CHECK-NEXT: error: Invalid address range [0x0000000000000007, 0x0000000000000006)
6+
7+
--- !ELF
8+
FileHeader:
9+
Class: ELFCLASS64
10+
Data: ELFDATA2LSB
11+
Type: ET_EXEC
12+
DWARF:
13+
debug_abbrev:
14+
- Table:
15+
- Tag: DW_TAG_compile_unit
16+
Children: DW_CHILDREN_no
17+
Attributes:
18+
- Attribute: DW_AT_low_pc
19+
Form: DW_FORM_addr
20+
- Attribute: DW_AT_high_pc
21+
Form: DW_FORM_addr
22+
debug_info:
23+
- Version: 4
24+
Entries:
25+
- AbbrCode: 1
26+
Values:
27+
- Value: 0x07
28+
- Value: 0x06

0 commit comments

Comments
 (0)