[llvm] llvm-dwarfdump --verify aggregated output to JSON file (PR #81762)

Kevin Frei via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 20 09:46:44 PST 2024


================
@@ -286,6 +286,8 @@ static opt<bool> Verify("verify", desc("Verify the DWARF debug info."),
                         cat(DwarfDumpCategory));
 static opt<ErrorDetailLevel> ErrorDetails(
     "error-display", init(Unspecified),
+    desc("Set the level of detail and summary to display when verifying "
+         "(implies --verify)"),
     values(clEnumValN(NoDetailsOrSummary, "quiet",
                       "Only display whether errors occurred."),
            clEnumValN(NoDetailsOnlySummary, "summary",
----------------
kevinfrei wrote:

Output for this "class" of tool (gsymutil as well) probably ought to be structured to better support tooling validation. This is step one. I'm happy to make a shorter alias for `--json-error-summary-file` (`-j` ?). I do think that the file format @clayborg suggested (and I adopted) can be extended to easily include full details for each error.

https://github.com/llvm/llvm-project/pull/81762


More information about the llvm-commits mailing list