From 601cb1689361ff3f6dc5adf8cbe9360f22dea636 Mon Sep 17 00:00:00 2001 From: David Schulz Date: Tue, 14 Jun 2022 10:47:05 +0200 Subject: [PATCH] Debugger: set the inferior executable when attaching to a run control The inferior is used to verify that the bitness of the selected debugger matches the inferior bitness on windows. Change-Id: Ide7703a1ecc63a7d69101df779ce7f2660fecdbc Reviewed-by: hjk --- src/plugins/debugger/debuggerplugin.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp index 3accce69ebb..5de92dd4831 100644 --- a/src/plugins/debugger/debuggerplugin.cpp +++ b/src/plugins/debugger/debuggerplugin.cpp @@ -1753,6 +1753,7 @@ void DebuggerPlugin::attachExternalApplication(RunControl *rc) runControl->setTarget(rc->target()); runControl->setDisplayName(tr("Process %1").arg(pid.pid())); auto debugger = new DebuggerRunTool(runControl); + debugger->setInferiorExecutable(rc->targetFilePath()); debugger->setAttachPid(pid); debugger->setStartMode(AttachToLocalProcess); debugger->setCloseMode(DetachAtClose);