Skip to content

Commit 0116a9a

Browse files
committed
[lldb-mcp] Register a NoOpMonitorCallback when launching lldb from lldb-mcp
Register a callback to avoid tripping the monitor assertion in LaunchProcess on Darwin. Fixes #163269
1 parent 578c03f commit 0116a9a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lldb/tools/lldb-mcp/lldb-mcp.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ FileSpec driverPath() {
8585
llvm::Error launch() {
8686
FileSpec lldb_exec = driverPath();
8787
lldb_private::ProcessLaunchInfo info;
88+
info.SetMonitorProcessCallback(
89+
&lldb_private::ProcessLaunchInfo::NoOpMonitorCallback);
8890
info.SetExecutableFile(lldb_exec,
8991
/*add_exe_file_as_first_arg=*/true);
9092
info.GetArguments().AppendArgument("-O");

0 commit comments

Comments
 (0)