You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Modify dwarf verification JSON to include detailed counts by sub-category
Details:
To help make better use of dwarfdump verification for identifying and
fixing issues with debug information, the JSON will now emit details
(sub-categories) where relevant. First modification concerns missing tags
as those were recently missing for BOLT debug names.
Test:
test files for JSON output were previously added, so modify here to expect
the new JSON keys. One test has sub-categories and another is empty.
ninja check-llvm-tools-llvm-dwarfdump
Also build the tool and run with a local executable to verify.
ninja llvm-dwarfdump
# CHECK: {"error-categories":{"Name Index DIE entry missing name":{"count":10}},"error-count":10}
4
+
# CHECK: {"error-categories":{"Name Index DIE entry missing name":{"count":10,"details":{"DW_TAG_inlined_subroutine":1,"DW_TAG_label":1,"DW_TAG_namespace":2,"DW_TAG_subprogram":2,"DW_TAG_variable":4}}},"error-count":10}
5
5
# CHECK-NOT: error: Name Index @ 0x0: Entry for DIE @ {{.*}} (DW_TAG_variable) with name var_block_addr missing.
Copy file name to clipboardExpand all lines: llvm/test/tools/llvm-dwarfdump/X86/debug-names-verify-cu-lists-json-output.s
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
# RUN: not llvm-dwarfdump -verify -verify-json=%t.json -
3
3
# RUN: FileCheck %s --input-file %t.json
4
4
5
-
# CHECK: {"error-categories":{"Duplicate Name Index":{"count":1},"Name Index doesn't index any CU":{"count":1},"Name Index references non-existing CU":{"count":1}},"error-count":3}
5
+
# CHECK: {"error-categories":{"Duplicate Name Index":{"count":1,"details":{}},"Name Index doesn't index any CU":{"count":1,"details":{}},"Name Index references non-existing CU":{"count":1,"details":{}}},"error-count":3}
6
6
# CHECK-NOT : error: Name Index @ 0x58 references a CU @ 0x0, but this CU is already indexed by Name Index @ 0x28
7
7
# CHECK-NOT: warning: CU @ 0x13 not covered by any Name Index
0 commit comments