1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-19 06:55:23 +02:00

Revert "Bug 444208 - [remote] Specifing binary in launch config does not work if the name of binary is not same with the name of process"

This reverts commit 03aa13f48d.

Change-Id: Ia1168c831377ea358d05d3f11d887bef36504b0f
Reviewed-on: https://git.eclipse.org/r/34501
Reviewed-by: Marc Khouzam <marc.khouzam@ericsson.com>
Tested-by: Marc Khouzam <marc.khouzam@ericsson.com>
This commit is contained in:
Marc Khouzam 2014-10-07 09:48:23 -04:00
parent 27e94dcec3
commit f4155523a8

View file

@ -494,18 +494,18 @@ public class GdbConnectCommand extends RefreshableDebugCommand implements IConne
// to do that before we supported multi-process.
// Must do this here to be in the executor
// Bug 350365
IPath processPath = new Path(process.getName());
String processShortName = processPath.lastSegment();
if (fProcessNameToBinaryMap.isEmpty()) {
IPath binaryPath = backend.getProgramPath();
if (binaryPath != null && !binaryPath.isEmpty()) {
fProcessNameToBinaryMap.put(processShortName, binaryPath.toOSString());
fProcessNameToBinaryMap.put(binaryPath.lastSegment(), binaryPath.toOSString());
}
}
// Because the prompt is a very long operation, we need to run outside the
// executor, so we don't lock it.
// Bug 344892
IPath processPath = new Path(process.getName());
String processShortName = processPath.lastSegment();
new PromptAndAttachToProcessJob(pidStr,
LaunchUIMessages.getString("ProcessPrompterDialog.TitlePrefix") + process.getName(), //$NON-NLS-1$
processShortName, new AttachToProcessRequestMonitor()).schedule();