[Lldb-commits] [lldb] [LLDB] Print stderr in HandleStop (PR #208875)
via lldb-commits
lldb-commits at lists.llvm.org
Fri Jul 10 20:59:31 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-lldb
Author: aokblast
<details>
<summary>Changes</summary>
There are some testcases silently fail in stopping hook without returning anything on FreeBSD. We dump the error from the handler to make it easier to debug.
---
Full diff: https://github.com/llvm/llvm-project/pull/208875.diff
1 Files Affected:
- (modified) lldb/source/Target/Target.cpp (+2)
``````````diff
diff --git a/lldb/source/Target/Target.cpp b/lldb/source/Target/Target.cpp
index daa1b1c43efa8..379a572815c0c 100644
--- a/lldb/source/Target/Target.cpp
+++ b/lldb/source/Target/Target.cpp
@@ -4292,6 +4292,7 @@ Target::StopHookCommandLine::HandleStop(ExecutionContext &exc_ctx,
CommandReturnObject result(false);
result.SetImmediateOutputStream(output_sp);
+ result.SetImmediateErrorStream(output_sp);
result.SetInteractive(false);
Debugger &debugger = exc_ctx.GetTargetPtr()->GetDebugger();
CommandInterpreterRunOptions options;
@@ -4606,6 +4607,7 @@ Target::HookCommandLine::HandleStop(ExecutionContext &exc_ctx,
CommandReturnObject result(false);
result.SetImmediateOutputStream(output_sp);
+ result.SetImmediateErrorStream(output_sp);
result.SetInteractive(false);
Debugger &debugger = exc_ctx.GetTargetPtr()->GetDebugger();
CommandInterpreterRunOptions options;
``````````
</details>
https://github.com/llvm/llvm-project/pull/208875
More information about the lldb-commits
mailing list