Skip to content

Commit 8556a51

Browse files
davidtwcoDavid Wood
authored andcommitted
update error messages
Modify commit messages to improve consistency and quality. Signed-off-by: David Wood <[email protected]>
1 parent f5b0ecf commit 8556a51

22 files changed

+82
-85
lines changed

tests/archive.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,5 +71,5 @@ CHECK: DW_AT_name {{.*}} "e.cpp"
7171
CHECK: DW_TAG_subprogram
7272
CHECK: DW_AT_name {{.*}} "e"
7373

74-
MISSING: Error: Failed to finish creation of DWARF package
75-
MISSING: Unit 0x{{.*}} was referenced by executable but not found
74+
MISSING: Error: Failed verifying final DWARF package
75+
MISSING: Unit 0x{{.*}} referenced by executable was not found

tests/compress-fail.test

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ RUN: not thorin %p/inputs/compress-fail-a.dwo -o %t 2>&1 | FileCheck %s
22
RUN: not thorin %p/inputs/empty-compressed-section.dwo -o %t 2>&1 | FileCheck %s
33
RUN: not thorin %p/inputs/invalid-compressed.dwo -o %t 2>&1 | FileCheck --check-prefix=INVALID %s
44

5-
CHECK: Error: Failed to add input object to DWARF package
5+
CHECK: Error: Failed to add `{{.*}}` to DWARF package
66
CHECK: Invalid ELF GNU compressed section header
77

88
# `llvm-dwp` fails to decompress this, but `thorin` is able to but the contents aren't meaningful.
9-
INVALID: Error: Failed to add input object to DWARF package
10-
INVALID: Failed to read string at offset 00000000 of `.debug_str.dwo` section
9+
INVALID: Error: Failed to add `{{.*}}/invalid-compressed.dwo` to DWARF package
10+
INVALID: Read string at offset 0x00000000 of `.debug_str.dwo` section

tests/duplicate.test

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,20 @@ RUN: | FileCheck --check-prefix=DWO1DWP %s
1616
RUN: not thorin %p/inputs/duplicate-dwo-name-c.dwo %p/inputs/duplicate-dwo-name-bc.dwp -o %t 2>&1 \
1717
RUN: | FileCheck --check-prefix=DWO2DWP %s
1818

19-
DWOS: Error: Failed to add input object to DWARF package
20-
DWOS: Found duplicate split compilation unit ({{.*}})
19+
DWOS: Error: Failed to add `{{.*}}` to DWARF package
20+
DWOS: Duplicate split compilation unit ({{.*}})
2121

22-
1DWP: Error: Failed to add input object to DWARF package
23-
1DWP: Found duplicate split compilation unit ({{.*}})
22+
1DWP: Error: Failed to add `{{.*}}` to DWARF package
23+
1DWP: Duplicate split compilation unit ({{.*}})
2424

25-
2DWP: Error: Failed to add input object to DWARF package
26-
2DWP: Found duplicate split compilation unit ({{.*}})
25+
2DWP: Error: Failed to add `{{.*}}` to DWARF package
26+
2DWP: Duplicate split compilation unit ({{.*}})
2727

28-
DWODWOS: Error: Failed to add input object to DWARF package
29-
DWODWOS: Found duplicate split compilation unit ({{.*}})
28+
DWODWOS: Error: Failed to add `{{.*}}` to DWARF package
29+
DWODWOS: Duplicate split compilation unit ({{.*}})
3030

31-
DWO1DWP: Error: Failed to add input object to DWARF package
32-
DWO1DWP: Found duplicate split compilation unit ({{.*}})
31+
DWO1DWP: Error: Failed to add `{{.*}}` to DWARF package
32+
DWO1DWP: Duplicate split compilation unit ({{.*}})
3333

34-
DWO2DWP: Error: Failed to add input object to DWARF package
35-
DWO2DWP: Found duplicate split compilation unit ({{.*}})
34+
DWO2DWP: Error: Failed to add `{{.*}}` to DWARF package
35+
DWO2DWP: Duplicate split compilation unit ({{.*}})

tests/gcc-type.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ RUN: not thorin %p/inputs/gcc-type.dwo %p/inputs/gcc-type.dwo -o %t 2>&1 | FileC
44
CHECK: Type Unit
55
CHECK: Type Unit
66

7-
DUP: Error: Failed to add input object to DWARF package
8-
DUP: Found duplicate split compilation unit ({{.*}})
7+
DUP: Error: Failed to add `{{.*}}/gcc-type.dwo` to DWARF package
8+
DUP: Duplicate split compilation unit ({{.*}})

tests/handle-strx.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ RUN: | FileCheck --check-prefix=PARSE_STRX %s
66

77
READ_STRX: DW_AT_name [DW_FORM_strx1]{{.*}}dw5.cc
88

9-
PARSE_STRX: Error: Failed to add input object to DWARF package
10-
PARSE_STRX: Found duplicate split compilation unit ({{.*}})
9+
PARSE_STRX: Error: Failed to add `{{.*}}/handle-strx-v5.dwo` to DWARF package
10+
PARSE_STRX: Duplicate split compilation unit ({{.*}})

tests/incompatible-cu-index-versions.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# RUN: llvm-mc -triple x86_64-unknown-linux %s -filetype=obj -o %t.dwp
22
# RUN: not thorin %t.dwp -o %t 2>&1 | FileCheck %s
33

4-
# CHECK: Error: Failed to add input object to DWARF package
4+
# CHECK: Error: Failed to add `{{.*}}/incompatible-cu-index-versions.s.tmp.dwp` to DWARF package
55
# CHECK: Incompatible `.debug_cu_index` index version: found version 2, expected version 5
66

77
.section .debug_info.dwo, "e", @progbits

tests/incompatible-tu-index-version.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# RUN: llvm-mc -triple x86_64-unknown-linux %s -filetype=obj -o %t.dwp
22
# RUN: not thorin %t.dwp -o %t 2>&1 | FileCheck %s
33

4-
# CHECK: Error: Failed to add input object to DWARF package
4+
# CHECK: Error: Failed to add `{{.*}}/incompatible-tu-index-version.s.tmp.dwp` to DWARF package
55
# CHECK: Incompatible `.debug_tu_index` index version: found version 5, expected version 2
66

77
.section .debug_abbrev.dwo, "e", @progbits

tests/invalid-cu-header-length-type.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# RUN: -dwarf-version=5
33
# RUN: not thorin %t.dwo -o %t.dwp 2>&1 | FileCheck %s
44

5-
# CHECK: Error: Failed to add input object to DWARF package
5+
# CHECK: Error: Failed to add `{{.*}}/invalid-cu-header-length-type.s.tmp.dwo` to DWARF package
66
# CHECK: 0: Failed to parse unit header
77
# CHECK: 1: Hit the end of input before it was expected
88

tests/invalid-cu-header-length.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# RUN: -split-dwarf-file=%t.dwo -dwarf-version=5
33
# RUN: not thorin %t.dwo -o %t.dwp 2>&1 | FileCheck %s
44

5-
# CHECK: Error: Failed to add input object to DWARF package
5+
# CHECK: Error: Failed to add `{{.*}}/invalid-cu-header-length.s.tmp.dwo` to DWARF package
66
# CHECK: 0: Failed to parse unit header
77
# CHECK: 1: Hit the end of input before it was expected
88

tests/invalid-cu-header-version.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# RUN: -split-dwarf-file=%t.dwo -dwarf-version=5
33
# RUN: not thorin %t.dwo -o %t.dwp 2>&1 | FileCheck %s
44

5-
# CHECK: Error: Failed to add input object to DWARF package
5+
# CHECK: Error: Failed to add `{{.*}}/invalid-cu-header-version.s.tmp.dwo` to DWARF package
66
# CHECK: 0: Failed to parse unit header
77
# CHECK: 1: Hit the end of input before it was expected
88

0 commit comments

Comments
 (0)