[Lldb-commits] [lldb] [lldb][Process/FreeBSDKernelCore] Remove interactive mode check (PR #186705)

Minsoo Choo via lldb-commits lldb-commits at lists.llvm.org
Sun Mar 15 14:18:41 PDT 2026


https://github.com/mchoo7 created https://github.com/llvm/llvm-project/pull/186705

`Debugger.GetCommandInterpreter().IsInteractive()` is flaky thus `ProcessFreeBSDKernelCore::PrintUnreadMessage()` returns early due to incorrect behaviour. Disable the interactive mode check until it is fixed.

>From 95e833a878d3f69c129868e1f9b6842ca4d57c3a Mon Sep 17 00:00:00 2001
From: Minsoo Choo <minsoochoo0122 at proton.me>
Date: Sun, 15 Mar 2026 17:04:30 -0400
Subject: [PATCH] [lldb][Process/FreeBSDKernelCore] Remove interactive mode
 check

Signed-off-by: Minsoo Choo <minsoochoo0122 at proton.me>
---
 .../FreeBSD-Kernel-Core/ProcessFreeBSDKernelCore.cpp        | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/lldb/source/Plugins/Process/FreeBSD-Kernel-Core/ProcessFreeBSDKernelCore.cpp b/lldb/source/Plugins/Process/FreeBSD-Kernel-Core/ProcessFreeBSDKernelCore.cpp
index d1a4a1ebc47d7..fbe9157b4f9a9 100644
--- a/lldb/source/Plugins/Process/FreeBSD-Kernel-Core/ProcessFreeBSDKernelCore.cpp
+++ b/lldb/source/Plugins/Process/FreeBSD-Kernel-Core/ProcessFreeBSDKernelCore.cpp
@@ -394,8 +394,10 @@ void ProcessFreeBSDKernelCore::PrintUnreadMessage() {
   Target &target = GetTarget();
   Debugger &debugger = target.GetDebugger();
 
-  if (!debugger.GetCommandInterpreter().IsInteractive())
-    return;
+  // Todo: GetCommandInterpreter().IsInteractive() is flaky. When it is
+  // stabilized, restore the following code.
+  // if (!debugger.GetCommandInterpreter().IsInteractive())
+  //   return;
 
   Status error;
 



More information about the lldb-commits mailing list