[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:47:29 PDT 2026


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-lldb

Author: None (jimingham)

<details>
<summary>Changes</summary>

The messages about searching for call edges can be really verbose and they are only useful if you are explicitly debugging the call edges feature.  Most of the time they are irrelevant and just make the step log output hard to read.

---
Full diff: https://github.com/llvm/llvm-project/pull/187324.diff


1 Files Affected:

- (modified) lldb/source/Target/StackFrameList.cpp (+5-5) 


``````````diff
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;
   }

``````````

</details>


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


More information about the lldb-commits mailing list