[Lldb-commits] [lldb] Single thread stepping timeout prototype (PR #85260)
via lldb-commits
lldb-commits at lists.llvm.org
Thu Mar 14 09:28:22 PDT 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 10edabbcf331fdd53d27c5195de1b692a0063721 6982a47579b372b0e34c751c9952b4aa03531aeb -- lldb/include/lldb/Target/ThreadPlanSingleThreadTimeout.h lldb/include/lldb/Target/ThreadPlan.h lldb/include/lldb/Target/ThreadPlanStepOverRange.h lldb/source/Target/ThreadPlanStepOverRange.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/lldb/include/lldb/Target/ThreadPlanSingleThreadTimeout.h b/lldb/include/lldb/Target/ThreadPlanSingleThreadTimeout.h
index a7b8b4ffaa..51a3abfcb7 100644
--- a/lldb/include/lldb/Target/ThreadPlanSingleThreadTimeout.h
+++ b/lldb/include/lldb/Target/ThreadPlanSingleThreadTimeout.h
@@ -49,8 +49,7 @@ public:
lldb::StateType GetPlanRunState() override { return lldb::eStateRunning; }
static void thread_function(ThreadPlanSingleThreadTimeout *self) {
int timeout_ms = 5000; // 5 seconds timeout
- std::this_thread::sleep_for(
- std::chrono::milliseconds(timeout_ms));
+ std::this_thread::sleep_for(std::chrono::milliseconds(timeout_ms));
self->HandleTimeout();
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/85260
More information about the lldb-commits
mailing list