1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-30 21:55:31 +02:00

Bug 444208 - [remote] Specifing binary in launch config does not work if

the name of binary is not same with the name of process

Change-Id: Ib0c011e26eb2e348afb34a746017b096261e25b0
Signed-off-by: uozdemirgp2 <ugur.ozdemir@tubitak.gov.tr>
Reviewed-on: https://git.eclipse.org/r/33859
Tested-by: Hudson CI
Reviewed-by: Elena Laskavaia <elaskavaia.cdt@gmail.com>
This commit is contained in:
uozdemirgp2 2014-09-24 15:59:31 +03:00 committed by Elena Laskavaia
parent efd1635472
commit 03aa13f48d

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(binaryPath.lastSegment(), binaryPath.toOSString());
fProcessNameToBinaryMap.put(processShortName, 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();