diff options
author | Marc Dumais | 2016-10-12 17:18:39 +0000 |
---|---|---|
committer | Gerrit Code Review @ Eclipse.org | 2016-10-28 11:02:35 +0000 |
commit | f8488ac157e6eb1a718c395976359a85fe6fb60c (patch) | |
tree | 67c58fe47fa3d455e64f9ac6b6f90e1dbe7e4381 | |
parent | 5da005cf3a16500df7354169f75bb08b782366fb (diff) | |
download | org.eclipse.cdt-f8488ac157e6eb1a718c395976359a85fe6fb60c.tar.gz org.eclipse.cdt-f8488ac157e6eb1a718c395976359a85fe6fb60c.tar.xz org.eclipse.cdt-f8488ac157e6eb1a718c395976359a85fe6fb60c.zip |
Bug 505746 - A colon in the project name causes an NPE
Doubled column character addressed in this patch.
Change-Id: I942fbceeac231b2998fa808266f579509dc55295
-rw-r--r-- | dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/launching/FinalLaunchSequence.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/launching/FinalLaunchSequence.java b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/launching/FinalLaunchSequence.java index e3b6ae88b04..7d52aef31de 100644 --- a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/launching/FinalLaunchSequence.java +++ b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/launching/FinalLaunchSequence.java @@ -218,7 +218,7 @@ public class FinalLaunchSequence extends ReflectionSequence { if (dir != null) { fCommandControl.queueCommand( - fCommandFactory.createMIEnvironmentCD(fCommandControl.getContext(), dir.toPortableString()), + fCommandFactory.createMIEnvironmentCD(fCommandControl.getContext(), dir.toString()), new DataRequestMonitor<MIInfo>(getExecutor(), requestMonitor)); } else { requestMonitor.done(); @@ -554,7 +554,6 @@ public class FinalLaunchSequence extends ReflectionSequence { @Execute public void stepNewProcess(final RequestMonitor rm) { if (!fGDBBackend.getIsAttachSession()) { - boolean noBinarySpecified = CDebugUtils.getAttribute( fAttributes, IGDBLaunchConfigurationConstants.ATTR_DEBUGGER_USE_SOLIB_SYMBOLS_FOR_APP, @@ -563,7 +562,7 @@ public class FinalLaunchSequence extends ReflectionSequence { String binary = null; final IPath execPath = fGDBBackend.getProgramPath(); if (!noBinarySpecified && execPath != null && !execPath.isEmpty()) { - binary = execPath.toPortableString(); + binary = execPath.toString(); } // Even if binary is null, we must call this to do all the other steps |