1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-01 14:15:23 +02:00

Bug 80700: modern gdb does need argument be quoted for environment-cd, let super class take care of it

This commit is contained in:
Alena Laskavaia 2010-07-23 14:50:06 +00:00
parent 664e416fa2
commit 1aeb6dc884

View file

@ -25,18 +25,4 @@ public class MIEnvironmentCD extends MICommand
public MIEnvironmentCD(String miVersion, String path) {
super(miVersion, "-environment-cd", new String[]{path}); //$NON-NLS-1$
}
/**
* !@*^%^$( sigh ... gdb for this command does not make any interpretation
* So we must past the command verbatim without any changes.
* (non-Javadoc)
* @see org.eclipse.cdt.debug.mi.core.command.MICommand#parametersToString()
*/
protected String parametersToString() {
String[] parameters = getParameters();
if (parameters != null && parameters.length == 1) {
return parameters[0];
}
return super.parametersToString();
}
}