From 03aa13f48d31dd582c0a609477d1a85e91ff347d Mon Sep 17 00:00:00 2001 From: uozdemirgp2 Date: Wed, 24 Sep 2014 15:59:31 +0300 Subject: [PATCH] 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 Reviewed-on: https://git.eclipse.org/r/33859 Tested-by: Hudson CI Reviewed-by: Elena Laskavaia --- .../cdt/dsf/gdb/internal/ui/commands/GdbConnectCommand.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dsf-gdb/org.eclipse.cdt.dsf.gdb.ui/src/org/eclipse/cdt/dsf/gdb/internal/ui/commands/GdbConnectCommand.java b/dsf-gdb/org.eclipse.cdt.dsf.gdb.ui/src/org/eclipse/cdt/dsf/gdb/internal/ui/commands/GdbConnectCommand.java index 70960a83545..44ae9b0d32d 100644 --- a/dsf-gdb/org.eclipse.cdt.dsf.gdb.ui/src/org/eclipse/cdt/dsf/gdb/internal/ui/commands/GdbConnectCommand.java +++ b/dsf-gdb/org.eclipse.cdt.dsf.gdb.ui/src/org/eclipse/cdt/dsf/gdb/internal/ui/commands/GdbConnectCommand.java @@ -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();