[Lldb-commits] [lldb] d333df5 - [LLDB] Print stderr in HandleStop (#208875)
via lldb-commits
lldb-commits at lists.llvm.org
Thu Jul 16 08:17:37 PDT 2026
Author: aokblast
Date: 2026-07-16T23:17:32+08:00
New Revision: d333df5aeb31ecf867e1a7908a7814485f4aa7f0
URL: https://github.com/llvm/llvm-project/commit/d333df5aeb31ecf867e1a7908a7814485f4aa7f0
DIFF: https://github.com/llvm/llvm-project/commit/d333df5aeb31ecf867e1a7908a7814485f4aa7f0.diff
LOG: [LLDB] Print stderr in HandleStop (#208875)
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.
Added:
Modified:
lldb/source/Target/Target.cpp
Removed:
################################################################################
diff --git a/lldb/source/Target/Target.cpp b/lldb/source/Target/Target.cpp
index e851495a81f38..28896aea02b50 100644
--- a/lldb/source/Target/Target.cpp
+++ b/lldb/source/Target/Target.cpp
@@ -4291,6 +4291,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;
@@ -4605,6 +4606,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;
More information about the lldb-commits
mailing list