Skip to content

Commit a22091b

Browse files
committed
[DWARFYAML][test] Make the checker stricter. NFC.
Currently, DWARFYAML doesn't emit the 0 byte for terminating the abbrev table for the given compilation unit. Before addressing this issue, we have to make the test stricter.
1 parent 4eff2be commit a22091b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

llvm/test/tools/yaml2obj/ELF/DWARF/debug-abbrev.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
## ^- DW_CHILDREN_yes 1-byte ^- DW_FORM_data2 ULEB128
2626
## ^- DW_AT_producer ULEB128 ^- DW_AT_name ULEB128
2727
##
28-
## CONTENT: 1A000002 2E011101
28+
## CONTENT: 1A000002 2E011101 |...%............|
2929
## ^- DW_AT_strx ULEB128 ^- DW_TAG_subprogram ULEB128
3030
## ^--- terminating entry ^- DW_CHILDREN_yes 1-byte
3131
## ^- abbreviation code ULEB128 ^- DW_AT_low_pc ULEB128
@@ -37,13 +37,13 @@
3737
## ^--- terminating entry ^- DW_CHILDREN_no 1-byte
3838
## ^- DW_AT_call_pc ULEB128 (0x81)
3939
##
40-
# CONTENT: 01810104 02A04021
40+
# CONTENT: 01810104 02A04021 |..............@!|
4141
## -- ^- Form: reserved ULEB128
4242
## ^--- Form: invalid ULEB128 (0x81) ^--- Attribute: reserved ULEB128 (0x2020)
4343
## ^- Attribute: reserved ULEB128 ^- DW_FORM_implicit_const ULEB128
4444
##
45-
# CONTENT-NEXT: 0020: CEC2F105 0000
46-
## ^------- Value SLEB128 (12345678) ^--- terminating entry
45+
# CONTENT-NEXT: 0020: CEC2F105 0000 |......|
46+
## ^------- Value SLEB128 (12345678) ^--- terminating entry
4747
# CONTENT-NEXT: )
4848

4949
--- !ELF
@@ -119,7 +119,7 @@ Sections:
119119
# RUN: FileCheck -DSIZE=16 -DADDRALIGN=0 %s --check-prefixes=SHDR,SIZE
120120

121121
# SIZE-NEXT: SectionData (
122-
# SIZE-NEXT: 0000: 00000000 00000000 00000000 00000000
122+
# SIZE-NEXT: 0000: 00000000 00000000 00000000 00000000 |................|
123123
# SIZE-NEXT: )
124124

125125
--- !ELF

0 commit comments

Comments
 (0)