1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-21 21:52:10 +02:00

Bug 457697: Avoid unnecessary escaping in GDB MI command

Change-Id: I2c7590190fbce258fb6452f0d555bc276d4a9dda
This commit is contained in:
John Dallaway 2021-04-26 18:23:47 +01:00
parent 5e9fc00242
commit cb56590d4c

View file

@ -325,8 +325,7 @@ public class GDBJtagDSFFinalLaunchSequence extends FinalLaunchSequence {
public void stepSetExecutableFile(final RequestMonitor rm) { public void stepSetExecutableFile(final RequestMonitor rm) {
final IPath programPath = fGDBBackend.getProgramPath(); final IPath programPath = fGDBBackend.getProgramPath();
if (!programPath.isEmpty()) { if (!programPath.isEmpty()) {
// Escape backslashes for GDB final String file = programPath.toOSString();
final String file = programPath.toOSString().replace("\\", "\\\\"); //$NON-NLS-1$ //$NON-NLS-2$
fCommandControl.queueCommand( fCommandControl.queueCommand(
fCommandControl.getCommandFactory().createMIFileExecFile(fCommandControl.getContext(), file), fCommandControl.getCommandFactory().createMIFileExecFile(fCommandControl.getContext(), file),
new ImmediateDataRequestMonitor<MIInfo>(rm)); new ImmediateDataRequestMonitor<MIInfo>(rm));