1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-03 14:25:37 +02:00

Bug 426834 - Failure to install breakpoint in GDB when spaces are in the

workspace path

Change-Id: I9487275bd5c8c5a5cacbadd884c2fa38e49dd6dd
Reviewed-on: https://git.eclipse.org/r/23732
Reviewed-by: Marc Khouzam <marc.khouzam@ericsson.com>
IP-Clean: Mikhail Khodjaiants <mikhailkhod@googlemail.com>
Tested-by: Mikhail Khodjaiants <mikhailkhod@googlemail.com>
This commit is contained in:
Mikhail Khodjaiants 2014-03-21 13:27:11 -04:00
parent 22c1ce3d27
commit 8113f63532

View file

@ -172,30 +172,13 @@ public class MIBreakInsert extends MICommand<MIBreakInsertInfo>
if (opts.length > 0) {
setOptions(opts);
}
setParameters(new Adjustable[]{ new PathAdjustable(location)});
// Code that replaced double backslashes with single backslashes is removed.
// See https://bugs.eclipse.org/bugs/show_bug.cgi?id=426834 for details.
setParameters(new Adjustable[]{ new MIStandardParameterAdjustable(location)});
}
@Override
public MIBreakInsertInfo getResult(MIOutput output) {
return new MIBreakInsertInfo(output);
}
/**
* This adjustable makes sure that the path parameter will not get the
* backslashes substituted with double backslashes.
*/
private class PathAdjustable
extends
org.eclipse.cdt.dsf.mi.service.command.commands.MICommand.MIStandardParameterAdjustable {
public PathAdjustable(String path) {
super(path);
}
@Override
public String getAdjustedValue() {
String adjustedValue = super.getAdjustedValue();
return adjustedValue.replace("\\\\", "\\"); //$NON-NLS-1$//$NON-NLS-2$
}
}
}