[Lldb-commits] [lldb] Move the call frame edges log messages to the verbose channel. (PR #187324)

via lldb-commits lldb-commits at lists.llvm.org
Wed Mar 18 09:58:35 PDT 2026


https://github.com/jimingham updated https://github.com/llvm/llvm-project/pull/187324

>From e53ea63dc5ca8ebb875261275677993b41c74f46 Mon Sep 17 00:00:00 2001
From: Jim Ingham <jingham at apple.com>
Date: Wed, 18 Mar 2026 09:43:16 -0700
Subject: [PATCH 1/2] Move the call frame edges log messages to the verbose
 channel.

---
 lldb/source/Target/StackFrameList.cpp | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/lldb/source/Target/StackFrameList.cpp b/lldb/source/Target/StackFrameList.cpp
index 17e7f518c00c5..46322e9ce0fc5 100644
--- a/lldb/source/Target/StackFrameList.cpp
+++ b/lldb/source/Target/StackFrameList.cpp
@@ -210,17 +210,17 @@ static void FindInterveningFrames(Function &begin, Function &end,
                                   ExecutionContext &exe_ctx, Target &target,
                                   addr_t return_pc, CallSequence &path,
                                   ModuleList &images, Log *log) {
-  LLDB_LOG(log, "Finding frames between {0} and {1}, retn-pc={2:x}",
+  LLDB_LOGV(log, "Finding frames between {0} and {1}, retn-pc={2:x}",
            begin.GetDisplayName(), end.GetDisplayName(), return_pc);
 
   // Find a non-tail calling edge with the correct return PC.
   if (log)
     for (const auto &edge : begin.GetCallEdges())
-      LLDB_LOG(log, "FindInterveningFrames: found call with retn-PC = {0:x}",
+      LLDB_LOGV(log, "FindInterveningFrames: found call with retn-PC = {0:x}",
                edge->GetReturnPCAddress(begin, target));
   CallEdge *first_edge = begin.GetCallEdgeForReturnAddress(return_pc, target);
   if (!first_edge) {
-    LLDB_LOG(log, "No call edge outgoing from {0} with retn-PC == {1:x}",
+    LLDB_LOGV(log, "No call edge outgoing from {0} with retn-PC == {1:x}",
              begin.GetDisplayName(), return_pc);
     return;
   }
@@ -228,11 +228,11 @@ static void FindInterveningFrames(Function &begin, Function &end,
   // The first callee may not be resolved, or there may be nothing to fill in.
   Function *first_callee = first_edge->GetCallee(images, exe_ctx);
   if (!first_callee) {
-    LLDB_LOG(log, "Could not resolve callee");
+    LLDB_LOGV(log, "Could not resolve callee");
     return;
   }
   if (first_callee == &end) {
-    LLDB_LOG(log, "Not searching further, first callee is {0} (retn-PC: {1:x})",
+    LLDB_LOGV(log, "Not searching further, first callee is {0} (retn-PC: {1:x})",
              end.GetDisplayName(), return_pc);
     return;
   }

>From e641e97971420534d5f1e75347b640bbe39ef947 Mon Sep 17 00:00:00 2001
From: Jim Ingham <jingham at apple.com>
Date: Wed, 18 Mar 2026 09:58:06 -0700
Subject: [PATCH 2/2] Formatting

---
 lldb/source/Target/StackFrameList.cpp | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/lldb/source/Target/StackFrameList.cpp b/lldb/source/Target/StackFrameList.cpp
index 46322e9ce0fc5..84500b888356f 100644
--- a/lldb/source/Target/StackFrameList.cpp
+++ b/lldb/source/Target/StackFrameList.cpp
@@ -211,17 +211,17 @@ static void FindInterveningFrames(Function &begin, Function &end,
                                   addr_t return_pc, CallSequence &path,
                                   ModuleList &images, Log *log) {
   LLDB_LOGV(log, "Finding frames between {0} and {1}, retn-pc={2:x}",
-           begin.GetDisplayName(), end.GetDisplayName(), return_pc);
+            begin.GetDisplayName(), end.GetDisplayName(), return_pc);
 
   // Find a non-tail calling edge with the correct return PC.
   if (log)
     for (const auto &edge : begin.GetCallEdges())
       LLDB_LOGV(log, "FindInterveningFrames: found call with retn-PC = {0:x}",
-               edge->GetReturnPCAddress(begin, target));
+                edge->GetReturnPCAddress(begin, target));
   CallEdge *first_edge = begin.GetCallEdgeForReturnAddress(return_pc, target);
   if (!first_edge) {
     LLDB_LOGV(log, "No call edge outgoing from {0} with retn-PC == {1:x}",
-             begin.GetDisplayName(), return_pc);
+              begin.GetDisplayName(), return_pc);
     return;
   }
 
@@ -232,8 +232,9 @@ static void FindInterveningFrames(Function &begin, Function &end,
     return;
   }
   if (first_callee == &end) {
-    LLDB_LOGV(log, "Not searching further, first callee is {0} (retn-PC: {1:x})",
-             end.GetDisplayName(), return_pc);
+    LLDB_LOGV(log,
+              "Not searching further, first callee is {0} (retn-PC: {1:x})",
+              end.GetDisplayName(), return_pc);
     return;
   }
 



More information about the lldb-commits mailing list