[llvm] Added --report=debugger option to llvm-debuginfo-analyzer (PR #159853)

Carlos Alberto Enciso via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 19 23:14:29 PDT 2025


================
@@ -516,13 +517,185 @@ Error LVReader::doPrint() {
     if (options().getReportParents() || options().getReportView())
       if (Error Err = printScopes())
         return Err;
-
+    // Requested debugger report.
+    if (options().getReportDebugger())
+      if (Error Err = printDebugger())
+        return Err;
     return Error::success();
   }
 
   return printScopes();
 }
 
----------------
CarlosAlbertoEnciso wrote:

The printing logic should be moved to `LVScopeRoot::doPrintDebugger(...)`
```
Error LVReader::printDebugger() {
  // Any additional printing checks.
  if (Error Err = createSplitFolder())
    return Err;

  return Root->doPrintDebugger(OutputSplit, OS, ...);
}
```
As the printing needs to take into account any possible `--output=split` that splits the view output by compilation unit.

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


More information about the llvm-commits mailing list