mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-01 06:05:24 +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:
parent
efd1635472
commit
03aa13f48d
1 changed files with 3 additions and 3 deletions
|
@ -494,18 +494,18 @@ public class GdbConnectCommand extends RefreshableDebugCommand implements IConne
|
||||||
// to do that before we supported multi-process.
|
// to do that before we supported multi-process.
|
||||||
// Must do this here to be in the executor
|
// Must do this here to be in the executor
|
||||||
// Bug 350365
|
// Bug 350365
|
||||||
|
IPath processPath = new Path(process.getName());
|
||||||
|
String processShortName = processPath.lastSegment();
|
||||||
if (fProcessNameToBinaryMap.isEmpty()) {
|
if (fProcessNameToBinaryMap.isEmpty()) {
|
||||||
IPath binaryPath = backend.getProgramPath();
|
IPath binaryPath = backend.getProgramPath();
|
||||||
if (binaryPath != null && !binaryPath.isEmpty()) {
|
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
|
// Because the prompt is a very long operation, we need to run outside the
|
||||||
// executor, so we don't lock it.
|
// executor, so we don't lock it.
|
||||||
// Bug 344892
|
// Bug 344892
|
||||||
IPath processPath = new Path(process.getName());
|
|
||||||
String processShortName = processPath.lastSegment();
|
|
||||||
new PromptAndAttachToProcessJob(pidStr,
|
new PromptAndAttachToProcessJob(pidStr,
|
||||||
LaunchUIMessages.getString("ProcessPrompterDialog.TitlePrefix") + process.getName(), //$NON-NLS-1$
|
LaunchUIMessages.getString("ProcessPrompterDialog.TitlePrefix") + process.getName(), //$NON-NLS-1$
|
||||||
processShortName, new AttachToProcessRequestMonitor()).schedule();
|
processShortName, new AttachToProcessRequestMonitor()).schedule();
|
||||||
|
|
Loading…
Add table
Reference in a new issue