[llvm/DWARFDebugLine] Fix a typo in one warning message

This commit is contained in:
Pavel Labath 2020-06-11 13:04:26 +02:00
parent 0b781db908
commit fccaa89e23
4 changed files with 4 additions and 4 deletions

View File

@ -51,7 +51,7 @@
# Show that all line table problems are mentioned as soon as the object's line information
# is requested, even if that particular part of the line information is not currently required.
# Also show that the warnings are only printed once.
# CHECK: warning: unknown data in line table prologue at offset 0x00000000: parsing ended (at offset 0x00000037) before reaching the prologue at offset 0x00000038
# CHECK: warning: unknown data in line table prologue at offset 0x00000000: parsing ended (at offset 0x00000037) before reaching the prologue end at offset 0x00000038
# CHECK-NEXT: warning: parsing line table prologue at offset 0x0000005b: unsupported version 1
# CHECK-NEXT: warning: last sequence in debug line table at offset 0x00000061 is not terminated
# CHECK: error: undefined symbol: zed6a

View File

@ -433,7 +433,7 @@ Error DWARFDebugLine::Prologue::parse(
errc::invalid_argument,
"unknown data in line table prologue at offset 0x%8.8" PRIx64
": parsing ended (at offset 0x%8.8" PRIx64
") before reaching the prologue at offset 0x%8.8" PRIx64,
") before reaching the prologue end at offset 0x%8.8" PRIx64,
PrologueOffset, *OffsetPtr, EndPrologueOffset));
}
return Error::success();

View File

@ -105,7 +105,7 @@
## Prologue with length longer than parsed.
# NONFATAL: debug_line[0x000000c7]
# SOME-ERR-NEXT: warning: unknown data in line table prologue at offset 0x000000c7: parsing ended (at offset 0x00000101) before reaching the prologue at offset 0x00000102
# SOME-ERR-NEXT: warning: unknown data in line table prologue at offset 0x000000c7: parsing ended (at offset 0x00000101) before reaching the prologue end at offset 0x00000102
# NONFATAL-NEXT: Line table prologue
# NONFATAL: file_names[ 2]:
# NONFATAL-NEXT: name: "file2"

View File

@ -427,7 +427,7 @@ TEST_P(DebugLineParameterisedFixture, ErrorForTooLargePrologueLength) {
("unknown data in line table prologue at offset 0x00000000: "
"parsing ended (at offset 0x000000" +
Twine::utohexstr(ExpectedEnd - 1) +
") before reaching the prologue at offset 0x000000" +
") before reaching the prologue end at offset 0x000000" +
Twine::utohexstr(ExpectedEnd))
.str()));
}