mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-04 14:55:41 +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:
parent
22c1ce3d27
commit
8113f63532
1 changed files with 3 additions and 20 deletions
|
@ -172,30 +172,13 @@ public class MIBreakInsert extends MICommand<MIBreakInsertInfo>
|
||||||
if (opts.length > 0) {
|
if (opts.length > 0) {
|
||||||
setOptions(opts);
|
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
|
@Override
|
||||||
public MIBreakInsertInfo getResult(MIOutput output) {
|
public MIBreakInsertInfo getResult(MIOutput output) {
|
||||||
return new MIBreakInsertInfo(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$
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue