1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-29 20:05:35 +02:00

Provide out own parametersToString().

break-condition parameters can not be munge.
This commit is contained in:
Alain Magloire 2003-08-20 15:48:14 +00:00
parent 451e25f28e
commit f4b76e52e0

View file

@ -16,9 +16,20 @@ package org.eclipse.cdt.debug.mi.core.command;
* Result: * Result:
* ^done * ^done
*/ */
public class MIBreakCondition extends MICommand public class MIBreakCondition extends MICommand {
{ public MIBreakCondition(int brknum, String expr) {
public MIBreakCondition (int brknum, String expr) { super("-break-condition", new String[] { Integer.toString(brknum), expr });
super("-break-condition", new String[]{Integer.toString(brknum), expr}); }
/**
* Do not do any munging on the string i.e. quoting spaces
* etc .. doing this will break the command -break-condition.
*/
protected String parametersToString() {
StringBuffer buffer = new StringBuffer();
for (int i = 0; i < parameters.length; i++) {
buffer.append(' ').append(parameters[i]);
}
return buffer.toString().trim();
} }
} }