1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-12 10:45:37 +02:00

PR 57127. Pass the stream verbatim

even if it has spaces.
	This what gdb expects.
This commit is contained in:
Alain Magloire 2004-05-07 18:21:22 +00:00
parent eca3f0633f
commit 83ff50fe27
2 changed files with 20 additions and 0 deletions

View file

@ -1,3 +1,10 @@
2004-05-07 Alain Magloire
PR 57127. Pass the stream verbatim
even if it has spaces.
This what gdb expects.
* mi/org/eclipse/cdt/debug/mi/core/command/MIEnvironmentCD.java
2004-05-07 Alain Magloire
Patch from Keith Rolling(Palm Source).

View file

@ -20,4 +20,17 @@ public class MIEnvironmentCD extends MICommand
public MIEnvironmentCD(String path) {
super("-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() {
if (parameters != null && parameters.length == 1) {
return parameters[0];
}
return super.parametersToString();
}
}