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:
parent
eca3f0633f
commit
83ff50fe27
2 changed files with 20 additions and 0 deletions
|
@ -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
|
2004-05-07 Alain Magloire
|
||||||
|
|
||||||
Patch from Keith Rolling(Palm Source).
|
Patch from Keith Rolling(Palm Source).
|
||||||
|
|
|
@ -20,4 +20,17 @@ public class MIEnvironmentCD extends MICommand
|
||||||
public MIEnvironmentCD(String path) {
|
public MIEnvironmentCD(String path) {
|
||||||
super("-environment-cd", new String[]{path}); //$NON-NLS-1$
|
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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue