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:
parent
451e25f28e
commit
f4b76e52e0
1 changed files with 15 additions and 4 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue