[Lldb-commits] [lldb] Don't count all the frames just to skip the current inlined ones. (PR #80918)
via lldb-commits
lldb-commits at lists.llvm.org
Tue Feb 6 17:40:20 PST 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff 2f490583c368627f552c71e340c39f2b55c0526c c76edeec5c7430cd352c4d0ca977445800c55666 -- lldb/source/Expression/DWARFExpression.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/lldb/source/Expression/DWARFExpression.cpp b/lldb/source/Expression/DWARFExpression.cpp
index c061fd1140..e909c2c65d 100644
--- a/lldb/source/Expression/DWARFExpression.cpp
+++ b/lldb/source/Expression/DWARFExpression.cpp
@@ -609,7 +609,7 @@ static bool Evaluate_DW_OP_entry_value(std::vector<Value> &stack,
addr_t return_pc = LLDB_INVALID_ADDRESS;
uint32_t current_frame_idx = current_frame->GetFrameIndex();
- for (uint32_t parent_frame_idx = current_frame_idx + 1;;parent_frame_idx++) {
+ for (uint32_t parent_frame_idx = current_frame_idx + 1;; parent_frame_idx++) {
parent_frame = thread->GetStackFrameAtIndex(parent_frame_idx);
// If this is null, we're at the end of the stack.
if (!parent_frame)
``````````
</details>
https://github.com/llvm/llvm-project/pull/80918
More information about the lldb-commits
mailing list