Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -951,9 +951,11 @@ Status ProcessGDBRemote::HandleConnectionRequest(const GPUActions &gpu_action) {
return Status::FromErrorString("invalid platform for target needed for "
"connecting to process");

ProcessSP process_sp = platform_sp->ConnectProcess(
// We wait for the process to fully stop before we can query or alter it via
// GPUActions.
ProcessSP process_sp = platform_sp->ConnectProcessSynchronous(
connection_info.connect_url, GetPluginNameStatic(), debugger,
gpu_target_sp.get(), error);
*debugger.GetAsyncOutputStream(), gpu_target_sp.get(), error);
if (error.Fail())
return error;
if (!process_sp)
Expand Down