Skip to content

Conversation

JDevlieghere
Copy link
Member

Register a callback to avoid tripping the monitor assertion in LaunchProcess on Darwin.

Fixes #163269

…db-mcp

Register a callback to avoid tripping the monitor assertion in
LaunchProcess on Darwin.

Fixes llvm#163269
@JDevlieghere JDevlieghere requested a review from ashgti October 13, 2025 21:37
@llvmbot llvmbot added the lldb label Oct 13, 2025
@llvmbot
Copy link
Member

llvmbot commented Oct 13, 2025

@llvm/pr-subscribers-lldb

Author: Jonas Devlieghere (JDevlieghere)

Changes

Register a callback to avoid tripping the monitor assertion in LaunchProcess on Darwin.

Fixes #163269


Full diff: https://github.com/llvm/llvm-project/pull/163270.diff

1 Files Affected:

  • (modified) lldb/tools/lldb-mcp/lldb-mcp.cpp (+2)
diff --git a/lldb/tools/lldb-mcp/lldb-mcp.cpp b/lldb/tools/lldb-mcp/lldb-mcp.cpp
index 68e987237cc69..3fc362232ba6c 100644
--- a/lldb/tools/lldb-mcp/lldb-mcp.cpp
+++ b/lldb/tools/lldb-mcp/lldb-mcp.cpp
@@ -85,6 +85,8 @@ FileSpec driverPath() {
 llvm::Error launch() {
   FileSpec lldb_exec = driverPath();
   lldb_private::ProcessLaunchInfo info;
+  info.SetMonitorProcessCallback(
+      &lldb_private::ProcessLaunchInfo::NoOpMonitorCallback);
   info.SetExecutableFile(lldb_exec,
                          /*add_exe_file_as_first_arg=*/true);
   info.GetArguments().AppendArgument("-O");

@JDevlieghere JDevlieghere merged commit a333025 into llvm:main Oct 14, 2025
12 checks passed
@JDevlieghere JDevlieghere deleted the lldb-mcp-monitor branch October 14, 2025 03:56
akadutta pushed a commit to akadutta/llvm-project that referenced this pull request Oct 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

lldb-mcp: Assertion failed: (monitoring), function LaunchProcess, file Host.mm

3 participants