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

Carlos Alberto Enciso via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 9 01:44:35 PDT 2025


================
@@ -516,13 +517,181 @@ 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();
 }
 
+namespace {
+
+struct DebuggerViewPrinter {
+  std::vector<const LVLine *> Lines;
+  std::unordered_map<LVAddress, std::vector<const LVLocation *>> LifetimeBegins;
+  std::unordered_map<LVAddress, std::vector<const LVLocation *>>
+      LifetimeEndsExclusive;
+  raw_ostream &OS;
+
+  const bool IncludeRanges = false;
+
+  void Walk(raw_ostream &OS, const LVScope *Scope) {
----------------
CarlosAlbertoEnciso wrote:

https://llvm.org/docs/CodingStandards.html
Function names: The name should be camel case, and start with a lowercase letter.

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


More information about the llvm-commits mailing list