[Lldb-commits] [lldb] [lldb] Fix SIGSEGV in `GetPtraceScope()` in `Procfs.cpp` (PR #142224)
via lldb-commits
lldb-commits at lists.llvm.org
Fri May 30 15:29:08 PDT 2025
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 HEAD~1 HEAD --extensions cpp -- lldb/source/Plugins/Process/Linux/Procfs.cpp lldb/unittests/Process/Linux/ProcfsTests.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/lldb/unittests/Process/Linux/ProcfsTests.cpp b/lldb/unittests/Process/Linux/ProcfsTests.cpp
index a795fa4e0..534e3e132 100644
--- a/lldb/unittests/Process/Linux/ProcfsTests.cpp
+++ b/lldb/unittests/Process/Linux/ProcfsTests.cpp
@@ -125,7 +125,8 @@ TEST(Perf, RealPtraceScopeWhenNotExist) {
auto buffer_or_error =
errorOrToExpected(getProcFile("sys/kernel/yama/ptrace_scope"));
if (buffer_or_error)
- GTEST_SKIP() << "In order for this test to run, /proc/sys/kernel/yama/ptrace_scope should not exist";
+ GTEST_SKIP() << "In order for this test to run, "
+ "/proc/sys/kernel/yama/ptrace_scope should not exist";
consumeError(buffer_or_error.takeError());
// At this point we should fail parsing the ptrace_scope value.
``````````
</details>
https://github.com/llvm/llvm-project/pull/142224
More information about the lldb-commits
mailing list