mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 22:52:11 +02:00
Externalize strings from Tanya.
This commit is contained in:
parent
fbf82be3cd
commit
2e49a88af9
127 changed files with 404 additions and 398 deletions
|
@ -1,3 +1,9 @@
|
|||
2004-03-12 Tanya Wolff
|
||||
|
||||
Marked strings as non-translatable.
|
||||
|
||||
* mi/
|
||||
|
||||
2004-03-01 Alain Magloire
|
||||
|
||||
Reog. New source browser.
|
||||
|
|
|
@ -14,7 +14,7 @@ package org.eclipse.cdt.debug.mi.core.command;
|
|||
public class CLICommand extends Command
|
||||
{
|
||||
|
||||
String operation = "";
|
||||
String operation = ""; //$NON-NLS-1$
|
||||
|
||||
public CLICommand(String oper) {
|
||||
operation = oper;
|
||||
|
@ -34,9 +34,9 @@ public class CLICommand extends Command
|
|||
* @return the text representation of this command
|
||||
*/
|
||||
public String toString(){
|
||||
String str = getToken() + " " + operation;
|
||||
if (str.endsWith("\n"))
|
||||
String str = getToken() + " " + operation; //$NON-NLS-1$
|
||||
if (str.endsWith("\n")) //$NON-NLS-1$
|
||||
return str;
|
||||
return str + "\n";
|
||||
return str + "\n"; //$NON-NLS-1$
|
||||
}
|
||||
}
|
||||
|
|
|
@ -28,10 +28,10 @@ public class CygwinMIEnvironmentDirectory extends MIEnvironmentDirectory {
|
|||
ByteArrayOutputStream output = new ByteArrayOutputStream();
|
||||
|
||||
launcher.execute(
|
||||
new Path("cygpath"),
|
||||
new String[] { "-u", paths[i] },
|
||||
new Path("cygpath"), //$NON-NLS-1$
|
||||
new String[] { "-u", paths[i] }, //$NON-NLS-1$
|
||||
new String[0],
|
||||
new Path("."));
|
||||
new Path(".")); //$NON-NLS-1$
|
||||
if (launcher.waitAndRead(output, output) != CommandLauncher.OK)
|
||||
newpaths[i] = paths[i];
|
||||
else
|
||||
|
|
|
@ -21,7 +21,7 @@ package org.eclipse.cdt.debug.mi.core.command;
|
|||
public class MIBreakAfter extends MICommand
|
||||
{
|
||||
public MIBreakAfter(int brknum, int count) {
|
||||
super("-break-after",new String[]{Integer.toString(brknum),
|
||||
super("-break-after",new String[]{Integer.toString(brknum), //$NON-NLS-1$
|
||||
Integer.toString(count)});
|
||||
|
||||
}
|
||||
|
|
|
@ -18,7 +18,7 @@ package org.eclipse.cdt.debug.mi.core.command;
|
|||
*/
|
||||
public class MIBreakCondition extends MICommand {
|
||||
public MIBreakCondition(int brknum, String expr) {
|
||||
super("-break-condition", new String[] { Integer.toString(brknum), expr });
|
||||
super("-break-condition", new String[] { Integer.toString(brknum), expr }); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -20,7 +20,7 @@ package org.eclipse.cdt.debug.mi.core.command;
|
|||
public class MIBreakDelete extends MICommand
|
||||
{
|
||||
public MIBreakDelete (int[] array) {
|
||||
super("-break-delete");
|
||||
super("-break-delete"); //$NON-NLS-1$
|
||||
if (array != null && array.length > 0) {
|
||||
String[] brkids = new String[array.length];
|
||||
for (int i = 0; i < array.length; i++) {
|
||||
|
|
|
@ -19,7 +19,7 @@ package org.eclipse.cdt.debug.mi.core.command;
|
|||
public class MIBreakDisable extends MICommand
|
||||
{
|
||||
public MIBreakDisable (int[] array) {
|
||||
super("-break-disable");
|
||||
super("-break-disable"); //$NON-NLS-1$
|
||||
if (array != null && array.length > 0) {
|
||||
String[] brkids = new String[array.length];
|
||||
for (int i = 0; i < array.length; i++) {
|
||||
|
|
|
@ -18,7 +18,7 @@ package org.eclipse.cdt.debug.mi.core.command;
|
|||
public class MIBreakEnable extends MICommand
|
||||
{
|
||||
public MIBreakEnable (int[] array) {
|
||||
super("-break-enable");
|
||||
super("-break-enable"); //$NON-NLS-1$
|
||||
if (array != null && array.length > 0) {
|
||||
String[] brkids = new String[array.length];
|
||||
for (int i = 0; i < array.length; i++) {
|
||||
|
|
|
@ -61,7 +61,7 @@ public class MIBreakInsert extends MICommand
|
|||
|
||||
public MIBreakInsert(boolean isTemporary, boolean isHardware,
|
||||
String condition, int ignoreCount, String line) {
|
||||
super("-break-insert");
|
||||
super("-break-insert"); //$NON-NLS-1$
|
||||
|
||||
int i = 0;
|
||||
if (isTemporary || isHardware) {
|
||||
|
@ -78,20 +78,20 @@ public class MIBreakInsert extends MICommand
|
|||
|
||||
i = 0;
|
||||
if (isTemporary) {
|
||||
opts[i] = "-t";
|
||||
opts[i] = "-t"; //$NON-NLS-1$
|
||||
i++;
|
||||
} else if (isHardware) {
|
||||
opts[i] = "-h";
|
||||
opts[i] = "-h"; //$NON-NLS-1$
|
||||
i++;
|
||||
}
|
||||
if (condition != null && condition.length() > 0) {
|
||||
opts[i] = "-c";
|
||||
opts[i] = "-c"; //$NON-NLS-1$
|
||||
i++;
|
||||
opts[i] = condition;
|
||||
i++;
|
||||
}
|
||||
if (ignoreCount > 0) {
|
||||
opts[i] = "-i";
|
||||
opts[i] = "-i"; //$NON-NLS-1$
|
||||
i++;
|
||||
opts[i] = Integer.toString(ignoreCount);
|
||||
i++;
|
||||
|
|
|
@ -47,7 +47,7 @@ import org.eclipse.cdt.debug.mi.core.output.MIOutput;
|
|||
public class MIBreakList extends MICommand
|
||||
{
|
||||
public MIBreakList () {
|
||||
super("-break-list");
|
||||
super("-break-list"); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
public MIBreakListInfo getMIBreakListInfo() throws MIException {
|
||||
|
|
|
@ -27,12 +27,12 @@ import org.eclipse.cdt.debug.mi.core.output.MIOutput;
|
|||
public class MIBreakWatch extends MICommand
|
||||
{
|
||||
public MIBreakWatch (boolean access, boolean read, String expr) {
|
||||
super("-break-watch");
|
||||
super("-break-watch");//$NON-NLS-1$
|
||||
String[] opts = null;
|
||||
if (access) {
|
||||
opts = new String[] {"-a"};
|
||||
opts = new String[] {"-a"}; //$NON-NLS-1$
|
||||
} else if (read) {
|
||||
opts = new String[] {"-r"};
|
||||
opts = new String[] {"-r"}; //$NON-NLS-1$
|
||||
}
|
||||
if (opts != null) {
|
||||
setOptions(opts);
|
||||
|
|
|
@ -14,7 +14,7 @@ public class MICommand extends Command {
|
|||
final String[] empty = new String[0];
|
||||
String[] options = empty;
|
||||
String[] parameters = empty;
|
||||
String operation = "";
|
||||
String operation = ""; //$NON-NLS-1$
|
||||
|
||||
public MICommand(String oper) {
|
||||
this.operation = oper;
|
||||
|
@ -95,7 +95,7 @@ public class MICommand extends Command {
|
|||
// Add a "--" separator if any parameters start with "-"
|
||||
if (options != null && options.length > 0) {
|
||||
for (int i = 0; i < parameters.length; i++) {
|
||||
if (parameters[i].startsWith("-")) {
|
||||
if (parameters[i].startsWith("-")) { //$NON-NLS-1$
|
||||
buffer.append('-').append('-');
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -67,22 +67,22 @@ import org.eclipse.cdt.debug.mi.core.output.MIOutput;
|
|||
public class MIDataDisassemble extends MICommand
|
||||
{
|
||||
public MIDataDisassemble(String start, String end, boolean mode) {
|
||||
super("-data-disassemble");
|
||||
setOptions(new String[]{"-s", start, "-e", end});
|
||||
String mixed = "0";
|
||||
super("-data-disassemble"); //$NON-NLS-1$
|
||||
setOptions(new String[]{"-s", start, "-e", end}); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
String mixed = "0"; //$NON-NLS-1$
|
||||
if (mode) {
|
||||
mixed = "1";
|
||||
mixed = "1"; //$NON-NLS-1$
|
||||
}
|
||||
setParameters(new String[]{mixed});
|
||||
}
|
||||
|
||||
public MIDataDisassemble(String file, int linenum, int lines, boolean mode) {
|
||||
super("-data-disassemble");
|
||||
setOptions(new String[]{"-f", file, "-l",
|
||||
Integer.toString(linenum), "-n", Integer.toString(lines)});
|
||||
String mixed = "0";
|
||||
super("-data-disassemble"); //$NON-NLS-1$
|
||||
setOptions(new String[]{"-f", file, "-l", //$NON-NLS-1$ //$NON-NLS-2$
|
||||
Integer.toString(linenum), "-n", Integer.toString(lines)}); //$NON-NLS-1$
|
||||
String mixed = "0"; //$NON-NLS-1$
|
||||
if (mode) {
|
||||
mixed = "1";
|
||||
mixed = "1"; //$NON-NLS-1$
|
||||
}
|
||||
setParameters(new String[]{mixed});
|
||||
}
|
||||
|
|
|
@ -23,7 +23,7 @@ import org.eclipse.cdt.debug.mi.core.output.MIOutput;
|
|||
public class MIDataEvaluateExpression extends MICommand
|
||||
{
|
||||
public MIDataEvaluateExpression(String expr) {
|
||||
super("-data-evaluate-expression", new String[]{expr});
|
||||
super("-data-evaluate-expression", new String[]{expr}); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
public MIDataEvaluateExpressionInfo getMIDataEvaluateExpressionInfo() throws MIException {
|
||||
|
|
|
@ -21,7 +21,7 @@ import org.eclipse.cdt.debug.mi.core.output.MIOutput;
|
|||
public class MIDataListChangedRegisters extends MICommand
|
||||
{
|
||||
public MIDataListChangedRegisters() {
|
||||
super("-data-list-changed-registers" );
|
||||
super("-data-list-changed-registers" ); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
public MIDataListChangedRegistersInfo getMIDataListChangedRegistersInfo() throws MIException {
|
||||
|
|
|
@ -26,7 +26,7 @@ import org.eclipse.cdt.debug.mi.core.output.MIOutput;
|
|||
public class MIDataListRegisterNames extends MICommand
|
||||
{
|
||||
public MIDataListRegisterNames() {
|
||||
super("-data-list-register-names");
|
||||
super("-data-list-register-names"); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
public MIDataListRegisterNames(int [] regnos) {
|
||||
|
|
|
@ -30,33 +30,33 @@ public class MIDataListRegisterValues extends MICommand
|
|||
}
|
||||
|
||||
public MIDataListRegisterValues(int fmt, int [] regnos) {
|
||||
super("-data-list-register-values");
|
||||
super("-data-list-register-values"); //$NON-NLS-1$
|
||||
|
||||
String format = "x";
|
||||
String format = "x"; //$NON-NLS-1$
|
||||
switch (fmt) {
|
||||
case MIFormat.NATURAL:
|
||||
format = "N";
|
||||
format = "N"; //$NON-NLS-1$
|
||||
break;
|
||||
|
||||
case MIFormat.RAW:
|
||||
format = "r";
|
||||
format = "r"; //$NON-NLS-1$
|
||||
break;
|
||||
|
||||
case MIFormat.DECIMAL:
|
||||
format = "d";
|
||||
format = "d"; //$NON-NLS-1$
|
||||
break;
|
||||
|
||||
case MIFormat.BINARY:
|
||||
format = "t";
|
||||
format = "t"; //$NON-NLS-1$
|
||||
break;
|
||||
|
||||
case MIFormat.OCTAL:
|
||||
format = "o";
|
||||
format = "o"; //$NON-NLS-1$
|
||||
break;
|
||||
|
||||
case MIFormat.HEXADECIMAL:
|
||||
default:
|
||||
format = "x";
|
||||
format = "x"; //$NON-NLS-1$
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
@ -60,52 +60,52 @@ public class MIDataReadMemory extends MICommand {
|
|||
int rows,
|
||||
int cols,
|
||||
Character asChar) {
|
||||
super("-data-read-memory");
|
||||
super("-data-read-memory"); //$NON-NLS-1$
|
||||
if (offset != 0) {
|
||||
setOptions(new String[] { "-o", Long.toString(offset)});
|
||||
setOptions(new String[] { "-o", Long.toString(offset)}); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
String format = "x";
|
||||
String format = "x"; //$NON-NLS-1$
|
||||
switch (wordFormat) {
|
||||
case MIFormat.UNSIGNED :
|
||||
format = "u";
|
||||
format = "u"; //$NON-NLS-1$
|
||||
break;
|
||||
|
||||
case MIFormat.FLOAT :
|
||||
format = "f";
|
||||
format = "f"; //$NON-NLS-1$
|
||||
break;
|
||||
|
||||
case MIFormat.ADDRESS :
|
||||
format = "a";
|
||||
format = "a"; //$NON-NLS-1$
|
||||
break;
|
||||
|
||||
case MIFormat.INSTRUCTION :
|
||||
format = "i";
|
||||
format = "i"; //$NON-NLS-1$
|
||||
break;
|
||||
|
||||
case MIFormat.CHAR :
|
||||
format = "c";
|
||||
format = "c"; //$NON-NLS-1$
|
||||
break;
|
||||
|
||||
case MIFormat.STRING :
|
||||
format = "s";
|
||||
format = "s"; //$NON-NLS-1$
|
||||
break;
|
||||
|
||||
case MIFormat.DECIMAL :
|
||||
format = "d";
|
||||
format = "d"; //$NON-NLS-1$
|
||||
break;
|
||||
|
||||
case MIFormat.BINARY :
|
||||
format = "t";
|
||||
format = "t"; //$NON-NLS-1$
|
||||
break;
|
||||
|
||||
case MIFormat.OCTAL :
|
||||
format = "o";
|
||||
format = "o"; //$NON-NLS-1$
|
||||
break;
|
||||
|
||||
case MIFormat.HEXADECIMAL :
|
||||
default :
|
||||
format = "x";
|
||||
format = "x"; //$NON-NLS-1$
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
@ -37,53 +37,53 @@ public class MIDataWriteMemory extends MICommand {
|
|||
public MIDataWriteMemory(long offset, String address, int wordFormat, int wordSize,
|
||||
String value) {
|
||||
|
||||
super ("-data-write-memory");
|
||||
super ("-data-write-memory"); //$NON-NLS-1$
|
||||
|
||||
if (offset != 0) {
|
||||
setOptions(new String[] { "-o", Long.toString(offset)});
|
||||
setOptions(new String[] { "-o", Long.toString(offset)}); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
String format = "x";
|
||||
String format = "x"; //$NON-NLS-1$
|
||||
switch (wordFormat) {
|
||||
case MIFormat.UNSIGNED :
|
||||
format = "u";
|
||||
format = "u"; //$NON-NLS-1$
|
||||
break;
|
||||
|
||||
case MIFormat.FLOAT :
|
||||
format = "f";
|
||||
format = "f"; //$NON-NLS-1$
|
||||
break;
|
||||
|
||||
case MIFormat.ADDRESS :
|
||||
format = "a";
|
||||
format = "a"; //$NON-NLS-1$
|
||||
break;
|
||||
|
||||
case MIFormat.INSTRUCTION :
|
||||
format = "i";
|
||||
format = "i"; //$NON-NLS-1$
|
||||
break;
|
||||
|
||||
case MIFormat.CHAR :
|
||||
format = "c";
|
||||
format = "c"; //$NON-NLS-1$
|
||||
break;
|
||||
|
||||
case MIFormat.STRING :
|
||||
format = "s";
|
||||
format = "s"; //$NON-NLS-1$
|
||||
break;
|
||||
|
||||
case MIFormat.DECIMAL :
|
||||
format = "d";
|
||||
format = "d"; //$NON-NLS-1$
|
||||
break;
|
||||
|
||||
case MIFormat.BINARY :
|
||||
format = "t";
|
||||
format = "t"; //$NON-NLS-1$
|
||||
break;
|
||||
|
||||
case MIFormat.OCTAL :
|
||||
format = "o";
|
||||
format = "o"; //$NON-NLS-1$
|
||||
break;
|
||||
|
||||
case MIFormat.HEXADECIMAL :
|
||||
default :
|
||||
format = "x";
|
||||
format = "x"; //$NON-NLS-1$
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
@ -21,33 +21,33 @@ import org.eclipse.cdt.debug.mi.core.MIFormat;
|
|||
public class MIDataWriteRegisterValues extends MICommand {
|
||||
|
||||
public MIDataWriteRegisterValues(int fmt, int[] regnos, String[] values) {
|
||||
super("-data-write-register-values");
|
||||
super("-data-write-register-values"); //$NON-NLS-1$
|
||||
|
||||
String format = "x";
|
||||
String format = "x"; //$NON-NLS-1$
|
||||
switch (fmt) {
|
||||
case MIFormat.NATURAL:
|
||||
format = "N";
|
||||
format = "N"; //$NON-NLS-1$
|
||||
break;
|
||||
|
||||
case MIFormat.RAW:
|
||||
format = "r";
|
||||
format = "r"; //$NON-NLS-1$
|
||||
break;
|
||||
|
||||
case MIFormat.DECIMAL:
|
||||
format = "d";
|
||||
format = "d"; //$NON-NLS-1$
|
||||
break;
|
||||
|
||||
case MIFormat.BINARY:
|
||||
format = "t";
|
||||
format = "t"; //$NON-NLS-1$
|
||||
break;
|
||||
|
||||
case MIFormat.OCTAL:
|
||||
format = "o";
|
||||
format = "o"; //$NON-NLS-1$
|
||||
break;
|
||||
|
||||
case MIFormat.HEXADECIMAL:
|
||||
default:
|
||||
format = "x";
|
||||
format = "x"; //$NON-NLS-1$
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
@ -18,6 +18,6 @@ package org.eclipse.cdt.debug.mi.core.command;
|
|||
public class MIEnvironmentCD extends MICommand
|
||||
{
|
||||
public MIEnvironmentCD(String path) {
|
||||
super("-environment-cd", new String[]{path});
|
||||
super("-environment-cd", new String[]{path}); //$NON-NLS-1$
|
||||
}
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@ import org.eclipse.cdt.debug.mi.core.output.MIOutput;
|
|||
public class MIEnvironmentPWD extends MICommand
|
||||
{
|
||||
public MIEnvironmentPWD() {
|
||||
super("-environment-pwd");
|
||||
super("-environment-pwd"); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
public MIInfo getMIInfo() throws MIException {
|
||||
|
|
|
@ -16,6 +16,6 @@ package org.eclipse.cdt.debug.mi.core.command;
|
|||
public class MIEnvironmentPath extends MICommand
|
||||
{
|
||||
public MIEnvironmentPath(String[] paths) {
|
||||
super("-environment-path", paths);
|
||||
super("-environment-path", paths); //$NON-NLS-1$
|
||||
}
|
||||
}
|
||||
|
|
|
@ -18,6 +18,6 @@ package org.eclipse.cdt.debug.mi.core.command;
|
|||
public class MIExecAbort extends CLICommand
|
||||
{
|
||||
public MIExecAbort() {
|
||||
super("kill");
|
||||
super("kill"); //$NON-NLS-1$
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,6 +17,6 @@ package org.eclipse.cdt.debug.mi.core.command;
|
|||
public class MIExecContinue extends MICommand
|
||||
{
|
||||
public MIExecContinue() {
|
||||
super("-exec-continue");
|
||||
super("-exec-continue"); //$NON-NLS-1$
|
||||
}
|
||||
}
|
||||
|
|
|
@ -18,6 +18,6 @@ package org.eclipse.cdt.debug.mi.core.command;
|
|||
public class MIExecFinish extends MICommand
|
||||
{
|
||||
public MIExecFinish() {
|
||||
super("-exec-finish");
|
||||
super("-exec-finish"); //$NON-NLS-1$
|
||||
}
|
||||
}
|
||||
|
|
|
@ -21,6 +21,6 @@ package org.eclipse.cdt.debug.mi.core.command;
|
|||
public class MIExecInterrupt extends MICommand
|
||||
{
|
||||
public MIExecInterrupt() {
|
||||
super("-exec-interrupt");
|
||||
super("-exec-interrupt"); //$NON-NLS-1$
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,6 +17,6 @@ package org.eclipse.cdt.debug.mi.core.command;
|
|||
public class MIExecNext extends MICommand
|
||||
{
|
||||
public MIExecNext() {
|
||||
super("-exec-next");
|
||||
super("-exec-next"); //$NON-NLS-1$
|
||||
}
|
||||
}
|
||||
|
|
|
@ -19,6 +19,6 @@ package org.eclipse.cdt.debug.mi.core.command;
|
|||
public class MIExecNextInstruction extends MICommand
|
||||
{
|
||||
public MIExecNextInstruction() {
|
||||
super("-exec-next-instruction");
|
||||
super("-exec-next-instruction"); //$NON-NLS-1$
|
||||
}
|
||||
}
|
||||
|
|
|
@ -19,6 +19,6 @@ package org.eclipse.cdt.debug.mi.core.command;
|
|||
public class MIExecReturn extends MICommand
|
||||
{
|
||||
public MIExecReturn() {
|
||||
super("-exec-return");
|
||||
super("-exec-return"); //$NON-NLS-1$
|
||||
}
|
||||
}
|
||||
|
|
|
@ -18,10 +18,10 @@ package org.eclipse.cdt.debug.mi.core.command;
|
|||
public class MIExecRun extends MICommand
|
||||
{
|
||||
public MIExecRun() {
|
||||
super("-exec-run");
|
||||
super("-exec-run"); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
public MIExecRun(String[] args) {
|
||||
super("-exec-run", args);
|
||||
super("-exec-run", args); //$NON-NLS-1$
|
||||
}
|
||||
}
|
||||
|
|
|
@ -19,6 +19,6 @@ package org.eclipse.cdt.debug.mi.core.command;
|
|||
public class MIExecStep extends MICommand
|
||||
{
|
||||
public MIExecStep() {
|
||||
super("-exec-step");
|
||||
super("-exec-step"); //$NON-NLS-1$
|
||||
}
|
||||
}
|
||||
|
|
|
@ -22,6 +22,6 @@ package org.eclipse.cdt.debug.mi.core.command;
|
|||
public class MIExecStepInstruction extends MICommand
|
||||
{
|
||||
public MIExecStepInstruction() {
|
||||
super("-exec-step-instruction");
|
||||
super("-exec-step-instruction"); //$NON-NLS-1$
|
||||
}
|
||||
}
|
||||
|
|
|
@ -20,10 +20,10 @@ package org.eclipse.cdt.debug.mi.core.command;
|
|||
public class MIExecUntil extends MICommand
|
||||
{
|
||||
public MIExecUntil() {
|
||||
super("-exec-until");
|
||||
super("-exec-until"); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
public MIExecUntil(String loc) {
|
||||
super("-exec-until", new String[]{loc});
|
||||
super("-exec-until", new String[]{loc}); //$NON-NLS-1$
|
||||
}
|
||||
}
|
||||
|
|
|
@ -20,6 +20,6 @@ package org.eclipse.cdt.debug.mi.core.command;
|
|||
public class MIFileExecFile extends MICommand
|
||||
{
|
||||
public MIFileExecFile(String file) {
|
||||
super("-file-exec-file", new String[]{file});
|
||||
super("-file-exec-file", new String[]{file}); //$NON-NLS-1$
|
||||
}
|
||||
}
|
||||
|
|
|
@ -18,6 +18,6 @@ package org.eclipse.cdt.debug.mi.core.command;
|
|||
public class MIFileSymbolFile extends MICommand
|
||||
{
|
||||
public MIFileSymbolFile(String file) {
|
||||
super("-file-symbol-file", new String[]{file});
|
||||
super("-file-symbol-file", new String[]{file}); //$NON-NLS-1$
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,6 +16,6 @@ package org.eclipse.cdt.debug.mi.core.command;
|
|||
public class MIGDBExit extends MICommand
|
||||
{
|
||||
public MIGDBExit() {
|
||||
super("-gdb-exit");
|
||||
super("-gdb-exit"); //$NON-NLS-1$
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,6 +16,6 @@ package org.eclipse.cdt.debug.mi.core.command;
|
|||
public class MIGDBSet extends MICommand
|
||||
{
|
||||
public MIGDBSet(String[] params) {
|
||||
super("-gdb-set", params);
|
||||
super("-gdb-set", params); //$NON-NLS-1$
|
||||
}
|
||||
}
|
||||
|
|
|
@ -15,6 +15,6 @@ package org.eclipse.cdt.debug.mi.core.command;
|
|||
*/
|
||||
public class MIGDBSetAutoSolib extends MIGDBSet {
|
||||
public MIGDBSetAutoSolib(boolean isSet) {
|
||||
super(new String[] {"auto-solib-add", (isSet) ? "on" : "off"});
|
||||
super(new String[] {"auto-solib-add", (isSet) ? "on" : "off"}); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@ public class MIGDBSetSolibSearchPath extends MIGDBSet {
|
|||
public MIGDBSetSolibSearchPath(String[] paths) {
|
||||
super(paths);
|
||||
// Overload the parameter
|
||||
String sep = System.getProperty("path.separator", ":");
|
||||
String sep = System.getProperty("path.separator", ":"); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
StringBuffer buffer = new StringBuffer();
|
||||
for (int i = 0; i < paths.length; i++) {
|
||||
if (buffer.length() == 0) {
|
||||
|
@ -26,7 +26,7 @@ public class MIGDBSetSolibSearchPath extends MIGDBSet {
|
|||
buffer.append(sep).append(paths[i]);
|
||||
}
|
||||
}
|
||||
String[] p = new String [] {"solib-search-path", buffer.toString()};
|
||||
String[] p = new String [] {"solib-search-path", buffer.toString()}; //$NON-NLS-1$
|
||||
setParameters(p);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -15,6 +15,6 @@ package org.eclipse.cdt.debug.mi.core.command;
|
|||
*/
|
||||
public class MIGDBSetStopOnSolibEvents extends MIGDBSet {
|
||||
public MIGDBSetStopOnSolibEvents(boolean isSet) {
|
||||
super(new String[] {"stop-on-solib-events", (isSet) ? "1" : "0"});
|
||||
super(new String[] {"stop-on-solib-events", (isSet) ? "1" : "0"}); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
|
||||
}
|
||||
}
|
||||
|
|
|
@ -20,7 +20,7 @@ import org.eclipse.cdt.debug.mi.core.output.MIOutput;
|
|||
*/
|
||||
public class MIGDBShow extends MICommand {
|
||||
public MIGDBShow(String[] params) {
|
||||
super("-gdb-show", params);
|
||||
super("-gdb-show", params); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
public MIGDBShowInfo getMIGDBShowInfo() throws MIException {
|
||||
|
|
|
@ -22,7 +22,7 @@ import org.eclipse.cdt.debug.mi.core.output.MIOutput;
|
|||
public class MIGDBShowExitCode extends MIDataEvaluateExpression {
|
||||
|
||||
public MIGDBShowExitCode() {
|
||||
super("$_exitcode");
|
||||
super("$_exitcode"); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
public MIGDBShowExitCodeInfo getMIGDBShowExitCodeInfo() throws MIException {
|
||||
|
|
|
@ -19,7 +19,7 @@ import org.eclipse.cdt.debug.mi.core.output.MIPTypeInfo;
|
|||
public class MIPType extends CLICommand
|
||||
{
|
||||
public MIPType(String var) {
|
||||
super("ptype " + var);
|
||||
super("ptype " + var); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
public MIPTypeInfo getMIPtypeInfo() throws MIException {
|
||||
|
|
|
@ -16,10 +16,10 @@ package org.eclipse.cdt.debug.mi.core.command;
|
|||
public class MISharedLibrary extends CLICommand {
|
||||
|
||||
public MISharedLibrary() {
|
||||
super("sharedlibrary");
|
||||
super("sharedlibrary"); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
public MISharedLibrary(String name) {
|
||||
super("sharedlibrary " + name);
|
||||
super("sharedlibrary " + name); //$NON-NLS-1$
|
||||
}
|
||||
}
|
||||
|
|
|
@ -22,11 +22,11 @@ import org.eclipse.cdt.debug.mi.core.output.MIStackInfoDepthInfo;
|
|||
public class MIStackInfoDepth extends MICommand
|
||||
{
|
||||
public MIStackInfoDepth() {
|
||||
super("-stack-info-depth");
|
||||
super("-stack-info-depth"); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
public MIStackInfoDepth(int maxDepth) {
|
||||
super("-stack-info-depth", new String[]{Integer.toString(maxDepth)});
|
||||
super("-stack-info-depth", new String[]{Integer.toString(maxDepth)}); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
public MIStackInfoDepthInfo getMIStackInfoDepthInfo() throws MIException {
|
||||
|
|
|
@ -28,21 +28,21 @@ import org.eclipse.cdt.debug.mi.core.output.MIStackListArgumentsInfo;
|
|||
public class MIStackListArguments extends MICommand
|
||||
{
|
||||
public MIStackListArguments(boolean showValues) {
|
||||
super("-stack-list-arguments");
|
||||
super("-stack-list-arguments"); //$NON-NLS-1$
|
||||
if (showValues) {
|
||||
setParameters(new String[]{"1"});
|
||||
setParameters(new String[]{"1"}); //$NON-NLS-1$
|
||||
} else {
|
||||
setParameters(new String[]{"0"});
|
||||
setParameters(new String[]{"0"}); //$NON-NLS-1$
|
||||
}
|
||||
}
|
||||
|
||||
public MIStackListArguments(boolean showValues, int low, int high) {
|
||||
super("-stack-list-arguments");
|
||||
super("-stack-list-arguments"); //$NON-NLS-1$
|
||||
String[] params = new String[3];
|
||||
if (showValues) {
|
||||
params[0] = "1";
|
||||
params[0] = "1"; //$NON-NLS-1$
|
||||
} else {
|
||||
params[0] = "0";
|
||||
params[0] = "0"; //$NON-NLS-1$
|
||||
}
|
||||
params[1] = Integer.toString(low);
|
||||
params[2] = Integer.toString(high);
|
||||
|
|
|
@ -43,11 +43,11 @@ import org.eclipse.cdt.debug.mi.core.output.MIStackListFramesInfo;
|
|||
public class MIStackListFrames extends MICommand
|
||||
{
|
||||
public MIStackListFrames() {
|
||||
super("-stack-list-frames");
|
||||
super("-stack-list-frames"); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
public MIStackListFrames(int low, int high) {
|
||||
super("-stack-list-frames", new String[]{Integer.toString(low),
|
||||
super("-stack-list-frames", new String[]{Integer.toString(low), //$NON-NLS-1$
|
||||
Integer.toString(high)});
|
||||
}
|
||||
|
||||
|
|
|
@ -23,11 +23,11 @@ import org.eclipse.cdt.debug.mi.core.output.MIStackListLocalsInfo;
|
|||
public class MIStackListLocals extends MICommand
|
||||
{
|
||||
public MIStackListLocals(boolean printValues) {
|
||||
super("-stack-list-locals");
|
||||
super("-stack-list-locals"); //$NON-NLS-1$
|
||||
if (printValues) {
|
||||
setParameters(new String[]{"1"});
|
||||
setParameters(new String[]{"1"}); //$NON-NLS-1$
|
||||
} else {
|
||||
setParameters(new String[]{"0"});
|
||||
setParameters(new String[]{"0"}); //$NON-NLS-1$
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -19,6 +19,6 @@ package org.eclipse.cdt.debug.mi.core.command;
|
|||
public class MIStackSelectFrame extends MICommand
|
||||
{
|
||||
public MIStackSelectFrame(int frameNum) {
|
||||
super("-stack-select-frame", new String[]{Integer.toString(frameNum)});
|
||||
super("-stack-select-frame", new String[]{Integer.toString(frameNum)}); //$NON-NLS-1$
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,6 +17,6 @@ package org.eclipse.cdt.debug.mi.core.command;
|
|||
public class MITargetAttach extends CLICommand
|
||||
{
|
||||
public MITargetAttach(int pid) {
|
||||
super("attach " + Integer.toString(pid));
|
||||
super("attach " + Integer.toString(pid)); //$NON-NLS-1$
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,6 +17,6 @@ package org.eclipse.cdt.debug.mi.core.command;
|
|||
public class MITargetDetach extends MICommand
|
||||
{
|
||||
public MITargetDetach() {
|
||||
super("-target-detach");
|
||||
super("-target-detach"); //$NON-NLS-1$
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,6 +31,6 @@ package org.eclipse.cdt.debug.mi.core.command;
|
|||
public class MITargetDownload extends MICommand
|
||||
{
|
||||
public MITargetDownload() {
|
||||
super("-target-download");
|
||||
super("-target-download"); //$NON-NLS-1$
|
||||
}
|
||||
}
|
||||
|
|
|
@ -22,7 +22,7 @@ import org.eclipse.cdt.debug.mi.core.output.MIThreadListIdsInfo;
|
|||
public class MIThreadListIds extends MICommand
|
||||
{
|
||||
public MIThreadListIds() {
|
||||
super("-thread-list-ids");
|
||||
super("-thread-list-ids"); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
public MIThreadListIdsInfo getMIThreadListIdsInfo() throws MIException {
|
||||
|
|
|
@ -22,7 +22,7 @@ import org.eclipse.cdt.debug.mi.core.output.MIThreadSelectInfo;
|
|||
public class MIThreadSelect extends MICommand
|
||||
{
|
||||
public MIThreadSelect(int threadNum) {
|
||||
super("-thread-select", new String[]{Integer.toString(threadNum)});
|
||||
super("-thread-select", new String[]{Integer.toString(threadNum)}); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
public MIThreadSelectInfo getMIThreadSelectInfo() throws MIException {
|
||||
|
|
|
@ -17,6 +17,6 @@ package org.eclipse.cdt.debug.mi.core.command;
|
|||
public class MIVarAssign extends MICommand
|
||||
{
|
||||
public MIVarAssign(String name, String expression) {
|
||||
super("-var-assign", new String[]{name, expression});
|
||||
super("-var-assign", new String[]{name, expression}); //$NON-NLS-1$
|
||||
}
|
||||
}
|
||||
|
|
|
@ -43,15 +43,15 @@ import org.eclipse.cdt.debug.mi.core.output.MIVarCreateInfo;
|
|||
public class MIVarCreate extends MICommand
|
||||
{
|
||||
public MIVarCreate(String expression) {
|
||||
this("-", "*", expression);
|
||||
this("-", "*", expression); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
}
|
||||
|
||||
public MIVarCreate(String name, String expression) {
|
||||
this(name, "*", expression);
|
||||
this(name, "*", expression); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
public MIVarCreate(String name, String frameAddr, String expression) {
|
||||
super("-var-create", new String[]{name, frameAddr, expression});
|
||||
super("-var-create", new String[]{name, frameAddr, expression}); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
public MIVarCreateInfo getMIVarCreateInfo() throws MIException {
|
||||
|
|
|
@ -24,7 +24,7 @@ import org.eclipse.cdt.debug.mi.core.output.MIVarEvaluateExpressionInfo;
|
|||
*/
|
||||
public class MIVarEvaluateExpression extends MICommand {
|
||||
public MIVarEvaluateExpression(String expression) {
|
||||
super("-var-evaluate-expression", new String[] { expression });
|
||||
super("-var-evaluate-expression", new String[] { expression }); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
public MIVarEvaluateExpressionInfo getMIVarEvaluateExpressionInfo()
|
||||
|
|
|
@ -25,7 +25,7 @@ import org.eclipse.cdt.debug.mi.core.output.MIVarInfoExpressionInfo;
|
|||
public class MIVarInfoExpression extends MICommand
|
||||
{
|
||||
public MIVarInfoExpression(String name) {
|
||||
super("-var-info-expression", new String[]{name});
|
||||
super("-var-info-expression", new String[]{name}); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
public MIVarInfoExpressionInfo getMIVarInfoExpressionInfo() throws MIException {
|
||||
|
|
|
@ -23,7 +23,7 @@ import org.eclipse.cdt.debug.mi.core.output.MIVarInfoNumChildrenInfo;
|
|||
public class MIVarInfoNumChildren extends MICommand
|
||||
{
|
||||
public MIVarInfoNumChildren(String name) {
|
||||
super("-var-info-num-children", new String[]{name});
|
||||
super("-var-info-num-children", new String[]{name}); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
public MIVarInfoNumChildrenInfo getMIVarInfoNumChildrenInfo() throws MIException {
|
||||
|
|
|
@ -19,6 +19,6 @@ package org.eclipse.cdt.debug.mi.core.command;
|
|||
public class MIVarInfoType extends MICommand
|
||||
{
|
||||
public MIVarInfoType(String name) {
|
||||
super("-var-info-type", new String[]{name});
|
||||
super("-var-info-type", new String[]{name}); //$NON-NLS-1$
|
||||
}
|
||||
}
|
||||
|
|
|
@ -24,7 +24,7 @@ import org.eclipse.cdt.debug.mi.core.output.MIVarListChildrenInfo;
|
|||
public class MIVarListChildren extends MICommand
|
||||
{
|
||||
public MIVarListChildren(String name) {
|
||||
super("-var-list-children", new String[]{name});
|
||||
super("-var-list-children", new String[]{name}); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
public MIVarListChildrenInfo getMIVarListChildrenInfo() throws MIException {
|
||||
|
|
|
@ -24,7 +24,7 @@ import org.eclipse.cdt.debug.mi.core.MIFormat;
|
|||
public class MIVarSetFormat extends MICommand
|
||||
{
|
||||
public MIVarSetFormat(String name, int fmt) {
|
||||
super("-var-set-format");
|
||||
super("-var-set-format"); //$NON-NLS-1$
|
||||
String format = "hexadecimal";
|
||||
switch (fmt) {
|
||||
case MIFormat.NATURAL:
|
||||
|
|
|
@ -25,7 +25,7 @@ import org.eclipse.cdt.debug.mi.core.output.MIVarShowAttributesInfo;
|
|||
public class MIVarShowAttributes extends MICommand
|
||||
{
|
||||
public MIVarShowAttributes(String name) {
|
||||
super("-var-show-attributes", new String[]{name});
|
||||
super("-var-show-attributes", new String[]{name}); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
public MIVarShowAttributesInfo getMIVarShowAttributesInfo() throws MIException {
|
||||
|
|
|
@ -19,6 +19,6 @@ package org.eclipse.cdt.debug.mi.core.command;
|
|||
public class MIVarShowFormat extends MICommand
|
||||
{
|
||||
public MIVarShowFormat(String name) {
|
||||
super("-var-show-format", new String[]{name});
|
||||
super("-var-show-format", new String[]{name}); //$NON-NLS-1$
|
||||
}
|
||||
}
|
||||
|
|
|
@ -23,7 +23,7 @@ import org.eclipse.cdt.debug.mi.core.output.MIVarUpdateInfo;
|
|||
public class MIVarUpdate extends MICommand {
|
||||
|
||||
public MIVarUpdate() {
|
||||
this("*");
|
||||
this("*"); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
public MIVarUpdate(String name) {
|
||||
|
|
|
@ -19,7 +19,7 @@ import org.eclipse.cdt.debug.mi.core.output.MIWhatisInfo;
|
|||
public class MIWhatis extends CLICommand
|
||||
{
|
||||
public MIWhatis(String var) {
|
||||
super("whatis " + var);
|
||||
super("whatis " + var); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
public MIWhatisInfo getMIWhatisInfo() throws MIException {
|
||||
|
|
|
@ -61,23 +61,23 @@ public class MIBreakpointHitEvent extends MIStoppedEvent {
|
|||
for (int i = 0; i < results.length; i++) {
|
||||
String var = results[i].getVariable();
|
||||
MIValue value = results[i].getMIValue();
|
||||
String str = "";
|
||||
String str = ""; //$NON-NLS-1$
|
||||
if (value != null && value instanceof MIConst) {
|
||||
str = ((MIConst)value).getString();
|
||||
}
|
||||
|
||||
if (var.equals("bkptno")) {
|
||||
if (var.equals("bkptno")) { //$NON-NLS-1$
|
||||
try {
|
||||
bkptno = Integer.parseInt(str.trim());
|
||||
} catch (NumberFormatException e) {
|
||||
}
|
||||
} else if (var.equals("thread-id")) {
|
||||
} else if (var.equals("thread-id")) { //$NON-NLS-1$
|
||||
try {
|
||||
int id = Integer.parseInt(str.trim());
|
||||
setThreadId(id);
|
||||
} catch (NumberFormatException e) {
|
||||
}
|
||||
} else if (var.equals("frame")) {
|
||||
} else if (var.equals("frame")) { //$NON-NLS-1$
|
||||
if (value instanceof MITuple) {
|
||||
frame = new MIFrame((MITuple)value);
|
||||
}
|
||||
|
|
|
@ -23,8 +23,8 @@ import org.eclipse.cdt.debug.mi.core.output.MIValue;
|
|||
*/
|
||||
public class MIErrorEvent extends MIStoppedEvent {
|
||||
|
||||
String msg = "";
|
||||
String log = "";
|
||||
String msg = ""; //$NON-NLS-1$
|
||||
String log = ""; //$NON-NLS-1$
|
||||
MIOOBRecord[] oobs;
|
||||
|
||||
public MIErrorEvent(MIResultRecord rr, MIOOBRecord[] o) {
|
||||
|
@ -49,12 +49,12 @@ public class MIErrorEvent extends MIStoppedEvent {
|
|||
for (int i = 0; i < results.length; i++) {
|
||||
String var = results[i].getVariable();
|
||||
MIValue value = results[i].getMIValue();
|
||||
String str = "";
|
||||
String str = ""; //$NON-NLS-1$
|
||||
if (value instanceof MIConst) {
|
||||
str = ((MIConst)value).getString();
|
||||
}
|
||||
|
||||
if (var.equals("msg")) {
|
||||
if (var.equals("msg")) { //$NON-NLS-1$
|
||||
msg = str;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -18,8 +18,8 @@ import org.eclipse.cdt.debug.mi.core.output.MIValue;
|
|||
*/
|
||||
public class MIFunctionFinishedEvent extends MIStoppedEvent {
|
||||
|
||||
String gdbResult = "";
|
||||
String returnValue = "";
|
||||
String gdbResult = ""; //$NON-NLS-1$
|
||||
String returnValue = ""; //$NON-NLS-1$
|
||||
|
||||
public MIFunctionFinishedEvent(MIExecAsyncOutput async) {
|
||||
super(async);
|
||||
|
@ -41,8 +41,8 @@ public class MIFunctionFinishedEvent extends MIStoppedEvent {
|
|||
|
||||
public String toString() {
|
||||
StringBuffer buffer = new StringBuffer();
|
||||
buffer.append("gdb-result-var=" + gdbResult + "\n");
|
||||
buffer.append("return-value=" + returnValue + "\n");
|
||||
buffer.append("gdb-result-var=" + gdbResult + "\n"); //$NON-NLS-2$
|
||||
buffer.append("return-value=" + returnValue + "\n"); //$NON-NLS-2$
|
||||
buffer.append("thread-id=").append(getThreadId()).append('\n');
|
||||
MIFrame f = getFrame();
|
||||
if (f != null) {
|
||||
|
@ -65,22 +65,22 @@ public class MIFunctionFinishedEvent extends MIStoppedEvent {
|
|||
for (int i = 0; i < results.length; i++) {
|
||||
String var = results[i].getVariable();
|
||||
MIValue value = results[i].getMIValue();
|
||||
String str = "";
|
||||
String str = ""; //$NON-NLS-1$
|
||||
if (value instanceof MIConst) {
|
||||
str = ((MIConst)value).getString();
|
||||
}
|
||||
|
||||
if (var.equals("gdb-result-var")) {
|
||||
if (var.equals("gdb-result-var")) { //$NON-NLS-1$
|
||||
gdbResult = str;
|
||||
} else if (var.equals("return-value")) {
|
||||
} else if (var.equals("return-value")) { //$NON-NLS-1$
|
||||
returnValue = str;
|
||||
} else if (var.equals("thread-id")) {
|
||||
} else if (var.equals("thread-id")) { //$NON-NLS-1$
|
||||
try {
|
||||
int id = Integer.parseInt(str.trim());
|
||||
setThreadId(id);
|
||||
} catch (NumberFormatException e) {
|
||||
}
|
||||
} else if (var.equals("frame")) {
|
||||
} else if (var.equals("frame")) { //$NON-NLS-1$
|
||||
if (value instanceof MITuple) {
|
||||
MIFrame f = new MIFrame((MITuple)value);
|
||||
setFrame(f);
|
||||
|
|
|
@ -58,12 +58,12 @@ public class MIInferiorExitEvent extends MIDestroyedEvent {
|
|||
for (int i = 0; i < results.length; i++) {
|
||||
String var = results[i].getVariable();
|
||||
MIValue value = results[i].getMIValue();
|
||||
String str = "";
|
||||
String str = ""; //$NON-NLS-1$
|
||||
if (value instanceof MIConst) {
|
||||
str = ((MIConst)value).getString();
|
||||
}
|
||||
|
||||
if (var.equals("exit-code")) {
|
||||
if (var.equals("exit-code")) { //$NON-NLS-1$
|
||||
try {
|
||||
code = Integer.decode(str.trim()).intValue();
|
||||
} catch (NumberFormatException e) {
|
||||
|
|
|
@ -19,8 +19,8 @@ import org.eclipse.cdt.debug.mi.core.output.MIValue;
|
|||
*/
|
||||
public class MIInferiorSignalExitEvent extends MIDestroyedEvent {
|
||||
|
||||
String sigName = "";
|
||||
String sigMeaning = "";
|
||||
String sigName = ""; //$NON-NLS-1$
|
||||
String sigMeaning = ""; //$NON-NLS-1$
|
||||
|
||||
MIExecAsyncOutput exec = null;
|
||||
MIResultRecord rr = null;
|
||||
|
@ -47,8 +47,8 @@ public class MIInferiorSignalExitEvent extends MIDestroyedEvent {
|
|||
|
||||
public String toString() {
|
||||
StringBuffer buffer = new StringBuffer();
|
||||
buffer.append("signal-name=" + sigName + "\n");
|
||||
buffer.append("signal-meaning=" + sigMeaning + "\n");
|
||||
buffer.append("signal-name=" + sigName + "\n"); //$NON-NLS-2$
|
||||
buffer.append("signal-meaning=" + sigMeaning + "\n"); //$NON-NLS-2$
|
||||
return buffer.toString();
|
||||
}
|
||||
|
||||
|
@ -63,14 +63,14 @@ public class MIInferiorSignalExitEvent extends MIDestroyedEvent {
|
|||
for (int i = 0; i < results.length; i++) {
|
||||
String var = results[i].getVariable();
|
||||
MIValue value = results[i].getMIValue();
|
||||
String str = "";
|
||||
String str = ""; //$NON-NLS-1$
|
||||
if (value instanceof MIConst) {
|
||||
str = ((MIConst)value).getString();
|
||||
}
|
||||
|
||||
if (var.equals("signal-name")) {
|
||||
if (var.equals("signal-name")) { //$NON-NLS-1$
|
||||
sigName = str;
|
||||
} else if (var.equals("signal-meaning")) {
|
||||
} else if (var.equals("signal-meaning")) { //$NON-NLS-1$
|
||||
sigMeaning = str;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -52,18 +52,18 @@ public class MILocationReachedEvent extends MIStoppedEvent {
|
|||
for (int i = 0; i < results.length; i++) {
|
||||
String var = results[i].getVariable();
|
||||
MIValue value = results[i].getMIValue();
|
||||
String str = "";
|
||||
String str = ""; //$NON-NLS-1$
|
||||
if (value instanceof MIConst) {
|
||||
str = ((MIConst)value).getString();
|
||||
}
|
||||
|
||||
if (var.equals("thread-id")) {
|
||||
if (var.equals("thread-id")) { //$NON-NLS-1$
|
||||
try {
|
||||
int id = Integer.parseInt(str.trim());
|
||||
setThreadId(id);
|
||||
} catch (NumberFormatException e) {
|
||||
}
|
||||
} else if (var.equals("frame")) {
|
||||
} else if (var.equals("frame")) { //$NON-NLS-1$
|
||||
if (value instanceof MITuple) {
|
||||
MIFrame f = new MIFrame((MITuple)value);
|
||||
setFrame(f);
|
||||
|
|
|
@ -19,8 +19,8 @@ import org.eclipse.cdt.debug.mi.core.output.MIValue;
|
|||
*/
|
||||
public class MISignalEvent extends MIStoppedEvent {
|
||||
|
||||
String sigName = "";
|
||||
String sigMeaning = "";
|
||||
String sigName = ""; //$NON-NLS-1$
|
||||
String sigMeaning = ""; //$NON-NLS-1$
|
||||
|
||||
public MISignalEvent(MIExecAsyncOutput async) {
|
||||
super(async);
|
||||
|
@ -66,22 +66,22 @@ public class MISignalEvent extends MIStoppedEvent {
|
|||
for (int i = 0; i < results.length; i++) {
|
||||
String var = results[i].getVariable();
|
||||
MIValue value = results[i].getMIValue();
|
||||
String str = "";
|
||||
String str = ""; //$NON-NLS-1$
|
||||
if (value instanceof MIConst) {
|
||||
str = ((MIConst)value).getString();
|
||||
}
|
||||
|
||||
if (var.equals("signal-name")) {
|
||||
if (var.equals("signal-name")) { //$NON-NLS-1$
|
||||
sigName = str;
|
||||
} else if (var.equals("signal-meaning")) {
|
||||
} else if (var.equals("signal-meaning")) { //$NON-NLS-1$
|
||||
sigMeaning = str;
|
||||
} else if (var.equals("thread-id")) {
|
||||
} else if (var.equals("thread-id")) { //$NON-NLS-1$
|
||||
try {
|
||||
int id = Integer.parseInt(str.trim());
|
||||
setThreadId(id);
|
||||
} catch (NumberFormatException e) {
|
||||
}
|
||||
} else if (var.equals("frame")) {
|
||||
} else if (var.equals("frame")) { //$NON-NLS-1$
|
||||
if (value instanceof MITuple) {
|
||||
MIFrame f = new MIFrame((MITuple)value);
|
||||
setFrame(f);
|
||||
|
|
|
@ -53,7 +53,7 @@ public class MISteppingRangeEvent extends MIStoppedEvent {
|
|||
String var = results[i].getVariable();
|
||||
MIValue value = results[i].getMIValue();
|
||||
|
||||
if (var.equals("thread-id")) {
|
||||
if (var.equals("thread-id")) { //$NON-NLS-1$
|
||||
if (value instanceof MIConst) {
|
||||
String str = ((MIConst)value).getString();
|
||||
try {
|
||||
|
@ -62,7 +62,7 @@ public class MISteppingRangeEvent extends MIStoppedEvent {
|
|||
} catch (NumberFormatException e) {
|
||||
}
|
||||
}
|
||||
} else if (var.equals("frame")) {
|
||||
} else if (var.equals("frame")) { //$NON-NLS-1$
|
||||
if (value instanceof MITuple) {
|
||||
MIFrame f = new MIFrame((MITuple)value);
|
||||
setFrame(f);
|
||||
|
|
|
@ -74,7 +74,7 @@ public class MIStoppedEvent extends MIEvent {
|
|||
String var = results[i].getVariable();
|
||||
MIValue value = results[i].getMIValue();
|
||||
|
||||
if (var.equals("thread-id")) {
|
||||
if (var.equals("thread-id")) { //$NON-NLS-1$
|
||||
if (value instanceof MIConst) {
|
||||
String str = ((MIConst)value).getString();
|
||||
try {
|
||||
|
@ -82,7 +82,7 @@ public class MIStoppedEvent extends MIEvent {
|
|||
} catch (NumberFormatException e) {
|
||||
}
|
||||
}
|
||||
} else if (var.equals("frame")) {
|
||||
} else if (var.equals("frame")) { //$NON-NLS-1$
|
||||
if (value instanceof MITuple) {
|
||||
frame = new MIFrame((MITuple)value);
|
||||
}
|
||||
|
|
|
@ -50,7 +50,7 @@ public class MIWatchpointScopeEvent extends MIStoppedEvent {
|
|||
String var = results[i].getVariable();
|
||||
MIValue value = results[i].getMIValue();
|
||||
|
||||
if (var.equals("wpnum")) {
|
||||
if (var.equals("wpnum")) { //$NON-NLS-1$
|
||||
if (value instanceof MIConst) {
|
||||
String str = ((MIConst) value).getString();
|
||||
try {
|
||||
|
@ -58,7 +58,7 @@ public class MIWatchpointScopeEvent extends MIStoppedEvent {
|
|||
} catch (NumberFormatException e) {
|
||||
}
|
||||
}
|
||||
} else if (var.equals("thread-id")) {
|
||||
} else if (var.equals("thread-id")) { //$NON-NLS-1$
|
||||
if (value instanceof MIConst) {
|
||||
String str = ((MIConst) value).getString();
|
||||
try {
|
||||
|
@ -67,7 +67,7 @@ public class MIWatchpointScopeEvent extends MIStoppedEvent {
|
|||
} catch (NumberFormatException e) {
|
||||
}
|
||||
}
|
||||
} else if (var.equals("frame")) {
|
||||
} else if (var.equals("frame")) { //$NON-NLS-1$
|
||||
if (value instanceof MITuple) {
|
||||
MIFrame f = new MIFrame((MITuple) value);
|
||||
setFrame(f);
|
||||
|
|
|
@ -20,9 +20,9 @@ import org.eclipse.cdt.debug.mi.core.output.MIValue;
|
|||
public class MIWatchpointTriggerEvent extends MIStoppedEvent {
|
||||
|
||||
int number;
|
||||
String exp = "";
|
||||
String oldValue = "";
|
||||
String newValue = "";
|
||||
String exp = ""; //$NON-NLS-1$
|
||||
String oldValue = ""; //$NON-NLS-1$
|
||||
String newValue = ""; //$NON-NLS-1$
|
||||
|
||||
public MIWatchpointTriggerEvent(MIExecAsyncOutput async) {
|
||||
super(async);
|
||||
|
@ -54,9 +54,9 @@ public class MIWatchpointTriggerEvent extends MIStoppedEvent {
|
|||
public String toString() {
|
||||
StringBuffer buffer = new StringBuffer();
|
||||
buffer.append("number=").append(number).append('\n');
|
||||
buffer.append("expression=" + exp + "\n");
|
||||
buffer.append("old=" + oldValue + "\n");
|
||||
buffer.append("new=" + newValue + "\n");
|
||||
buffer.append("expression=" + exp + "\n"); //$NON-NLS-2$
|
||||
buffer.append("old=" + oldValue + "\n"); //$NON-NLS-2$
|
||||
buffer.append("new=" + newValue + "\n"); //$NON-NLS-2$
|
||||
buffer.append("thread-id=").append(getThreadId()).append('\n');
|
||||
MIFrame f = getFrame();
|
||||
if (f != null) {
|
||||
|
@ -79,15 +79,15 @@ public class MIWatchpointTriggerEvent extends MIStoppedEvent {
|
|||
String var = results[i].getVariable();
|
||||
MIValue value = results[i].getMIValue();
|
||||
|
||||
if (var.equals("wpt") || var.equals("hw-awpt") || var.equals("hw-rwpt")) {
|
||||
if (var.equals("wpt") || var.equals("hw-awpt") || var.equals("hw-rwpt")) { //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
|
||||
if (value instanceof MITuple) {
|
||||
parseWPT((MITuple) value);
|
||||
}
|
||||
} else if (var.equals("value")) {
|
||||
} else if (var.equals("value")) { //$NON-NLS-1$
|
||||
if (value instanceof MITuple) {
|
||||
parseValue((MITuple) value);
|
||||
}
|
||||
} else if (var.equals("thread-id")) {
|
||||
} else if (var.equals("thread-id")) { //$NON-NLS-1$
|
||||
if (value instanceof MIConst) {
|
||||
String str = ((MIConst) value).getString();
|
||||
try {
|
||||
|
@ -96,7 +96,7 @@ public class MIWatchpointTriggerEvent extends MIStoppedEvent {
|
|||
} catch (NumberFormatException e) {
|
||||
}
|
||||
}
|
||||
} else if (var.equals("frame")) {
|
||||
} else if (var.equals("frame")) { //$NON-NLS-1$
|
||||
if (value instanceof MITuple) {
|
||||
MIFrame f = new MIFrame((MITuple) value);
|
||||
setFrame(f);
|
||||
|
@ -112,7 +112,7 @@ public class MIWatchpointTriggerEvent extends MIStoppedEvent {
|
|||
String var = results[i].getVariable();
|
||||
MIValue value = results[i].getMIValue();
|
||||
|
||||
if (var.equals("number")) {
|
||||
if (var.equals("number")) { //$NON-NLS-1$
|
||||
if (value instanceof MIConst) {
|
||||
String str = ((MIConst) value).getString();
|
||||
try {
|
||||
|
@ -120,7 +120,7 @@ public class MIWatchpointTriggerEvent extends MIStoppedEvent {
|
|||
} catch (NumberFormatException e) {
|
||||
}
|
||||
}
|
||||
} else if (var.equals("exp")) {
|
||||
} else if (var.equals("exp")) { //$NON-NLS-1$
|
||||
if (value instanceof MIConst) {
|
||||
exp = ((MIConst) value).getString();
|
||||
}
|
||||
|
@ -133,16 +133,16 @@ public class MIWatchpointTriggerEvent extends MIStoppedEvent {
|
|||
for (int i = 0; i < results.length; i++) {
|
||||
String var = results[i].getVariable();
|
||||
MIValue value = results[i].getMIValue();
|
||||
String str = "";
|
||||
String str = ""; //$NON-NLS-1$
|
||||
if (value instanceof MIConst) {
|
||||
str = ((MIConst) value).getString();
|
||||
}
|
||||
|
||||
if (var.equals("old")) {
|
||||
if (var.equals("old")) { //$NON-NLS-1$
|
||||
oldValue = str;
|
||||
} else if (var.equals("new")) {
|
||||
} else if (var.equals("new")) { //$NON-NLS-1$
|
||||
newValue = str;
|
||||
} else if (var.equals("value")) {
|
||||
} else if (var.equals("value")) { //$NON-NLS-1$
|
||||
oldValue = newValue = str;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -51,7 +51,7 @@ public class MIArg {
|
|||
MIValue value = results[i].getMIValue();
|
||||
if (value instanceof MIConst) {
|
||||
String str = ((MIConst)value).getCString();
|
||||
aList.add(new MIArg(str, ""));
|
||||
aList.add(new MIArg(str, "")); //$NON-NLS-1$
|
||||
}
|
||||
}
|
||||
return ((MIArg[])aList.toArray(new MIArg[aList.size()]));
|
||||
|
@ -66,21 +66,21 @@ public class MIArg {
|
|||
MIArg arg = null;
|
||||
if (args.length == 2) {
|
||||
// Name
|
||||
String aName = "";
|
||||
String aName = ""; //$NON-NLS-1$
|
||||
MIValue value = args[0].getMIValue();
|
||||
if (value != null && value instanceof MIConst) {
|
||||
aName = ((MIConst)value).getCString();
|
||||
} else {
|
||||
aName = "";
|
||||
aName = ""; //$NON-NLS-1$
|
||||
}
|
||||
|
||||
// Value
|
||||
String aValue = "";
|
||||
String aValue = ""; //$NON-NLS-1$
|
||||
value = args[1].getMIValue();
|
||||
if (value != null && value instanceof MIConst) {
|
||||
aValue = ((MIConst)value).getCString();
|
||||
} else {
|
||||
aValue = "";
|
||||
aValue = ""; //$NON-NLS-1$
|
||||
}
|
||||
|
||||
arg = new MIArg(aName, aValue);
|
||||
|
@ -89,6 +89,6 @@ public class MIArg {
|
|||
}
|
||||
|
||||
public String toString() {
|
||||
return name + "=" + value;
|
||||
return name + "=" + value; //$NON-NLS-1$
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,9 +10,9 @@ package org.eclipse.cdt.debug.mi.core.output;
|
|||
*/
|
||||
public class MIAsm {
|
||||
long address;
|
||||
String function = "";
|
||||
String opcode = "";
|
||||
String args = "";
|
||||
String function = ""; //$NON-NLS-1$
|
||||
String opcode = ""; //$NON-NLS-1$
|
||||
String args = ""; //$NON-NLS-1$
|
||||
long offset;
|
||||
|
||||
public MIAsm (MITuple tuple) {
|
||||
|
@ -32,16 +32,16 @@ public class MIAsm {
|
|||
}
|
||||
|
||||
public String getInstruction() {
|
||||
return opcode + " " + args;
|
||||
return opcode + " " + args; //$NON-NLS-1$
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
StringBuffer buffer = new StringBuffer();
|
||||
buffer.append('{');
|
||||
buffer.append("address=\"" + Long.toHexString(address) +"\"");
|
||||
buffer.append(",func-name=\"" + function + "\"");
|
||||
buffer.append("address=\"" + Long.toHexString(address) +"\""); //$NON-NLS-2$
|
||||
buffer.append(",func-name=\"" + function + "\""); //$NON-NLS-2$
|
||||
buffer.append(",offset=\"").append(offset).append('"');
|
||||
buffer.append(",inst=\"" + getInstruction() + "\"");
|
||||
buffer.append(",inst=\"" + getInstruction() + "\""); //$NON-NLS-2$
|
||||
buffer.append('}');
|
||||
return buffer.toString();
|
||||
}
|
||||
|
@ -51,7 +51,7 @@ public class MIAsm {
|
|||
for (int i = 0; i < results.length; i++) {
|
||||
String var = results[i].getVariable();
|
||||
MIValue value = results[i].getMIValue();
|
||||
String str = "";
|
||||
String str = ""; //$NON-NLS-1$
|
||||
|
||||
if (value != null && value instanceof MIConst) {
|
||||
str = ((MIConst)value).getCString();
|
||||
|
|
|
@ -13,7 +13,7 @@ public abstract class MIAsyncRecord extends MIOOBRecord {
|
|||
final static MIResult[] nullResults = new MIResult[0];
|
||||
|
||||
MIResult[] results = null;
|
||||
String asynClass = "";
|
||||
String asynClass = ""; //$NON-NLS-1$
|
||||
int token = 0;
|
||||
|
||||
public int getToken() {
|
||||
|
|
|
@ -34,24 +34,24 @@ public class MIBreakInsertInfo extends MIInfo {
|
|||
String var = results[i].getVariable();
|
||||
MIValue val = results[i].getMIValue();
|
||||
MIBreakpoint bpt = null;
|
||||
if (var.equals("wpt")) {
|
||||
if (var.equals("wpt")) { //$NON-NLS-1$
|
||||
if (val instanceof MITuple) {
|
||||
bpt = new MIBreakpoint((MITuple)val);
|
||||
bpt.setEnabled(true);
|
||||
bpt.setWriteWatchpoint(true);
|
||||
}
|
||||
} else if (var.equals("bkpt")) {
|
||||
} else if (var.equals("bkpt")) { //$NON-NLS-1$
|
||||
if (val instanceof MITuple) {
|
||||
bpt = new MIBreakpoint((MITuple)val);
|
||||
bpt.setEnabled(true);
|
||||
}
|
||||
} else if (var.equals("hw-awpt")) {
|
||||
} else if (var.equals("hw-awpt")) { //$NON-NLS-1$
|
||||
if (val instanceof MITuple) {
|
||||
bpt = new MIBreakpoint((MITuple)val);
|
||||
bpt.setAccessWatchpoint(true);
|
||||
bpt.setEnabled(true);
|
||||
}
|
||||
} else if (var.equals("hw-rwpt")) {
|
||||
} else if (var.equals("hw-rwpt")) { //$NON-NLS-1$
|
||||
if (val instanceof MITuple) {
|
||||
bpt = new MIBreakpoint((MITuple)val);
|
||||
bpt.setReadWatchpoint(true);
|
||||
|
|
|
@ -40,7 +40,7 @@ public class MIBreakListInfo extends MIInfo {
|
|||
MIResult[] results = rr.getMIResults();
|
||||
for (int i = 0; i < results.length; i++) {
|
||||
String var = results[i].getVariable();
|
||||
if (var.equals("BreakpointTable")) {
|
||||
if (var.equals("BreakpointTable")) { //$NON-NLS-1$
|
||||
parseTable(results[i].getMIValue(), aList);
|
||||
}
|
||||
}
|
||||
|
@ -54,7 +54,7 @@ public class MIBreakListInfo extends MIInfo {
|
|||
MIResult[] table = ((MITuple)val).getMIResults();
|
||||
for (int j = 0; j < table.length; j++) {
|
||||
String variable = table[j].getVariable();
|
||||
if (variable.equals("body")) {
|
||||
if (variable.equals("body")) { //$NON-NLS-1$
|
||||
parseBody(table[j].getMIValue(), aList);
|
||||
}
|
||||
}
|
||||
|
@ -66,7 +66,7 @@ public class MIBreakListInfo extends MIInfo {
|
|||
MIResult[] bkpts = ((MIList)body).getMIResults();
|
||||
for (int i = 0; i < bkpts.length; i++) {
|
||||
String b = bkpts[i].getVariable();
|
||||
if (b.equals("bkpt")) {
|
||||
if (b.equals("bkpt")) { //$NON-NLS-1$
|
||||
MIValue value = bkpts[i].getMIValue();
|
||||
if (value instanceof MITuple) {
|
||||
aList.add(new MIBreakpoint((MITuple)value));
|
||||
|
|
|
@ -45,17 +45,17 @@ package org.eclipse.cdt.debug.mi.core.output;
|
|||
public class MIBreakpoint {
|
||||
|
||||
int number;
|
||||
String type = "";
|
||||
String disp = "";
|
||||
String type = ""; //$NON-NLS-1$
|
||||
String disp = ""; //$NON-NLS-1$
|
||||
boolean enabled;
|
||||
long address;
|
||||
String func = "";
|
||||
String file = "";
|
||||
String func = ""; //$NON-NLS-1$
|
||||
String file = ""; //$NON-NLS-1$
|
||||
int line;
|
||||
String cond = "";
|
||||
String cond = ""; //$NON-NLS-1$
|
||||
int times;
|
||||
String what = "";
|
||||
String threadId = "";
|
||||
String what = ""; //$NON-NLS-1$
|
||||
String threadId = ""; //$NON-NLS-1$
|
||||
int ignore;
|
||||
|
||||
boolean isWpt;
|
||||
|
@ -181,74 +181,74 @@ public class MIBreakpoint {
|
|||
for (int i = 0; i < results.length; i++) {
|
||||
String var = results[i].getVariable();
|
||||
MIValue value = results[i].getMIValue();
|
||||
String str = "";
|
||||
String str = ""; //$NON-NLS-1$
|
||||
if (value != null && value instanceof MIConst) {
|
||||
str = ((MIConst)value).getCString();
|
||||
}
|
||||
|
||||
if (var.equals("number")) {
|
||||
if (var.equals("number")) { //$NON-NLS-1$
|
||||
try {
|
||||
number = Integer.parseInt(str.trim());
|
||||
} catch (NumberFormatException e) {
|
||||
}
|
||||
} else if (var.equals("type")) {
|
||||
} else if (var.equals("type")) { //$NON-NLS-1$
|
||||
type = str;
|
||||
//type="hw watchpoint"
|
||||
if (type.startsWith("hw")) {
|
||||
if (type.startsWith("hw")) { //$NON-NLS-1$
|
||||
isHdw = true;
|
||||
isWWpt = true;
|
||||
isWpt = true;
|
||||
}
|
||||
//type="acc watchpoint"
|
||||
if (type.startsWith("acc")) {
|
||||
if (type.startsWith("acc")) { //$NON-NLS-1$
|
||||
isWWpt = true;
|
||||
isRWpt = true;
|
||||
isWpt = true;
|
||||
}
|
||||
//type="read watchpoint"
|
||||
if (type.startsWith("read")) {
|
||||
if (type.startsWith("read")) { //$NON-NLS-1$
|
||||
isRWpt = true;
|
||||
isWpt = true;
|
||||
}
|
||||
// ??
|
||||
if (type.equals("watchpoint")) {
|
||||
if (type.equals("watchpoint")) { //$NON-NLS-1$
|
||||
isWpt = true;
|
||||
}
|
||||
// type="breakpoint"
|
||||
// default ok.
|
||||
} else if (var.equals("disp")) {
|
||||
} else if (var.equals("disp")) { //$NON-NLS-1$
|
||||
disp = str;
|
||||
} else if (var.equals("enabled")) {
|
||||
} else if (var.equals("enabled")) { //$NON-NLS-1$
|
||||
enabled = str.equals("y");
|
||||
} else if (var.equals("addr")) {
|
||||
} else if (var.equals("addr")) { //$NON-NLS-1$
|
||||
try {
|
||||
address = Long.decode(str.trim()).longValue();
|
||||
} catch (NumberFormatException e) {
|
||||
}
|
||||
} else if (var.equals("func")) {
|
||||
} else if (var.equals("func")) { //$NON-NLS-1$
|
||||
func = str;
|
||||
} else if (var.equals("file")) {
|
||||
} else if (var.equals("file")) { //$NON-NLS-1$
|
||||
file = str;
|
||||
} else if (var.equals("thread")) {
|
||||
} else if (var.equals("thread")) { //$NON-NLS-1$
|
||||
threadId = str;
|
||||
} else if (var.equals("line")) {
|
||||
} else if (var.equals("line")) { //$NON-NLS-1$
|
||||
try {
|
||||
line = Integer.parseInt(str.trim());
|
||||
} catch (NumberFormatException e) {
|
||||
}
|
||||
} else if (var.equals("times")) {
|
||||
} else if (var.equals("times")) { //$NON-NLS-1$
|
||||
try {
|
||||
times = Integer.parseInt(str.trim());
|
||||
} catch (NumberFormatException e) {
|
||||
}
|
||||
} else if (var.equals("what") || var.equals("exp")) {
|
||||
} else if (var.equals("what") || var.equals("exp")) { //$NON-NLS-1$ //$NON-NLS-2$
|
||||
what = str;
|
||||
} else if (var.equals("ignore")) {
|
||||
} else if (var.equals("ignore")) { //$NON-NLS-1$
|
||||
try {
|
||||
ignore = Integer.parseInt(str.trim());
|
||||
} catch (NumberFormatException e) {
|
||||
}
|
||||
} else if (var.equals("cond")) {
|
||||
} else if (var.equals("cond")) { //$NON-NLS-1$
|
||||
cond = str;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -9,7 +9,7 @@ package org.eclipse.cdt.debug.mi.core.output;
|
|||
* GDB/MI const value represents a ios-c string.
|
||||
*/
|
||||
public class MIConst extends MIValue {
|
||||
String cstring = "";
|
||||
String cstring = ""; //$NON-NLS-1$
|
||||
|
||||
public String getCString() {
|
||||
return cstring;
|
||||
|
@ -68,25 +68,25 @@ public class MIConst extends MIValue {
|
|||
private static String isoC(char c) {
|
||||
String s = new Character(c).toString();
|
||||
if (c == '"') {
|
||||
s = "\"";
|
||||
s = "\""; //$NON-NLS-1$
|
||||
} else if (c == '\'') {
|
||||
s = "\'";
|
||||
s = "\'"; //$NON-NLS-1$
|
||||
} else if (c == '?') {
|
||||
s = "?";
|
||||
s = "?"; //$NON-NLS-1$
|
||||
} else if (c == 'a') {
|
||||
s = "\007";
|
||||
s = "\007"; //$NON-NLS-1$
|
||||
} else if (c == 'b') {
|
||||
s = "\b";
|
||||
s = "\b"; //$NON-NLS-1$
|
||||
} else if (c == 'f') {
|
||||
s = "\f";
|
||||
s = "\f"; //$NON-NLS-1$
|
||||
} else if (c == 'n') {
|
||||
s = System.getProperty("line.separator", "\n");
|
||||
s = System.getProperty("line.separator", "\n"); //$NON-NLS-1$ $NON-NLS-2$
|
||||
} else if (c == 'r') {
|
||||
s = "\r";
|
||||
s = "\r"; //$NON-NLS-1$
|
||||
} else if (c == 't') {
|
||||
s = "\t";
|
||||
s = "\t"; //$NON-NLS-1$
|
||||
} else if (c == 'v') {
|
||||
s = "\013";
|
||||
s = "\013"; //$NON-NLS-1$
|
||||
}
|
||||
return s;
|
||||
}
|
||||
|
|
|
@ -56,7 +56,7 @@ public class MIDataDisassembleInfo extends MIInfo {
|
|||
buffer.append(array[i].toString());
|
||||
}
|
||||
}
|
||||
buffer.append("]");
|
||||
buffer.append("]"); //$NON-NLS-1$
|
||||
return buffer.toString();
|
||||
}
|
||||
|
||||
|
@ -70,7 +70,7 @@ public class MIDataDisassembleInfo extends MIInfo {
|
|||
MIResult[] results = rr.getMIResults();
|
||||
for (int i = 0; i < results.length; i++) {
|
||||
String var = results[i].getVariable();
|
||||
if (var.equals("asm_insns")) {
|
||||
if (var.equals("asm_insns")) { //$NON-NLS-1$
|
||||
MIValue value = results[i].getMIValue();
|
||||
if (value instanceof MIList) {
|
||||
parse((MIList)value, srcList, asmList);
|
||||
|
@ -91,7 +91,7 @@ public class MIDataDisassembleInfo extends MIInfo {
|
|||
if (results != null && results.length > 0) {
|
||||
for (int i = 0; i < results.length; i++) {
|
||||
String var = results[i].getVariable();
|
||||
if (var.equals("src_and_asm_line")) {
|
||||
if (var.equals("src_and_asm_line")) { //$NON-NLS-1$
|
||||
MIValue value = results[i].getMIValue();
|
||||
if (value instanceof MITuple) {
|
||||
srcList.add(new MISrcAsm((MITuple)value));
|
||||
|
|
|
@ -25,7 +25,7 @@ public class MIDataEvaluateExpressionInfo extends MIInfo{
|
|||
}
|
||||
|
||||
void parse() {
|
||||
expr = "";
|
||||
expr = ""; //$NON-NLS-1$
|
||||
if (isDone()) {
|
||||
MIOutput out = getMIOutput();
|
||||
MIResultRecord rr = out.getMIResultRecord();
|
||||
|
@ -33,7 +33,7 @@ public class MIDataEvaluateExpressionInfo extends MIInfo{
|
|||
MIResult[] results = rr.getMIResults();
|
||||
for (int i = 0; i < results.length; i++) {
|
||||
String var = results[i].getVariable();
|
||||
if (var.equals("value")) {
|
||||
if (var.equals("value")) { //$NON-NLS-1$
|
||||
MIValue value = results[i].getMIValue();
|
||||
if (value instanceof MIConst) {
|
||||
expr = ((MIConst)value).getCString();
|
||||
|
|
|
@ -34,7 +34,7 @@ public class MIDataListChangedRegistersInfo extends MIInfo {
|
|||
MIResult[] results = rr.getMIResults();
|
||||
for (int i = 0; i < results.length; i++) {
|
||||
String var = results[i].getVariable();
|
||||
if (var.equals("changed-registers")) {
|
||||
if (var.equals("changed-registers")) { //$NON-NLS-1$
|
||||
MIValue value = results[i].getMIValue();
|
||||
if (value instanceof MIList) {
|
||||
parseRegisters((MIList)value, aList);
|
||||
|
|
|
@ -41,7 +41,7 @@ public class MIDataListRegisterNamesInfo extends MIInfo {
|
|||
MIResult[] results = rr.getMIResults();
|
||||
for (int i = 0; i < results.length; i++) {
|
||||
String var = results[i].getVariable();
|
||||
if (var.equals("register-names")) {
|
||||
if (var.equals("register-names")) { //$NON-NLS-1$
|
||||
MIValue value = results[i].getMIValue();
|
||||
if (value instanceof MIList) {
|
||||
parseRegisters((MIList) value, aList);
|
||||
|
@ -66,7 +66,7 @@ public class MIDataListRegisterNamesInfo extends MIInfo {
|
|||
realNameCount++;
|
||||
aList.add(str);
|
||||
} else {
|
||||
aList.add("");
|
||||
aList.add(""); //$NON-NLS-1$
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,7 +31,7 @@ public class MIDataListRegisterValuesInfo extends MIInfo {
|
|||
MIResult[] results = rr.getMIResults();
|
||||
for (int i = 0; i < results.length; i++) {
|
||||
String var = results[i].getVariable();
|
||||
if (var.equals("register-values")) {
|
||||
if (var.equals("register-values")) { //$NON-NLS-1$
|
||||
MIValue value = results[i].getMIValue();
|
||||
if (value instanceof MIList) {
|
||||
registers = MIRegisterValue.getMIRegisterValues((MIList)value);
|
||||
|
|
|
@ -83,47 +83,47 @@ public class MIDataReadMemoryInfo extends MIInfo {
|
|||
for (int i = 0; i < results.length; i++) {
|
||||
String var = results[i].getVariable();
|
||||
MIValue value = results[i].getMIValue();
|
||||
String str = "";
|
||||
String str = ""; //$NON-NLS-1$
|
||||
if (value != null && value instanceof MIConst) {
|
||||
str = ((MIConst)value).getCString();
|
||||
}
|
||||
|
||||
if (var.equals("addr")) {
|
||||
if (var.equals("addr")) { //$NON-NLS-1$
|
||||
try {
|
||||
addr = Long.decode(str.trim()).longValue();
|
||||
} catch (NumberFormatException e) {
|
||||
}
|
||||
} else if (var.equals("nr-bytes")) {
|
||||
} else if (var.equals("nr-bytes")) { //$NON-NLS-1$
|
||||
try {
|
||||
numBytes = Long.decode(str.trim()).longValue();
|
||||
} catch (NumberFormatException e) {
|
||||
}
|
||||
} else if (var.equals("total-bytes")) {
|
||||
} else if (var.equals("total-bytes")) { //$NON-NLS-1$
|
||||
try {
|
||||
totalBytes = Long.decode(str.trim()).longValue();
|
||||
} catch (NumberFormatException e) {
|
||||
}
|
||||
} else if (var.equals("next-row")) {
|
||||
} else if (var.equals("next-row")) { //$NON-NLS-1$
|
||||
try {
|
||||
nextRow = Long.decode(str.trim()).longValue();
|
||||
} catch (NumberFormatException e) {
|
||||
}
|
||||
} else if (var.equals("prev-row")) {
|
||||
} else if (var.equals("prev-row")) { //$NON-NLS-1$
|
||||
try {
|
||||
prevRow = Long.decode(str.trim()).longValue();
|
||||
} catch (NumberFormatException e) {
|
||||
}
|
||||
} else if (var.equals("next-page")) {
|
||||
} else if (var.equals("next-page")) { //$NON-NLS-1$
|
||||
try {
|
||||
nextPage = Long.decode(str.trim()).longValue();
|
||||
} catch (NumberFormatException e) {
|
||||
}
|
||||
} else if (var.equals("prev-page")) {
|
||||
} else if (var.equals("prev-page")) { //$NON-NLS-1$
|
||||
try {
|
||||
prevPage = Long.decode(str.trim()).longValue();
|
||||
} catch (NumberFormatException e) {
|
||||
}
|
||||
} else if (var.equals("memory")) {
|
||||
} else if (var.equals("memory")) { //$NON-NLS-1$
|
||||
if (value instanceof MIList) {
|
||||
parseMemory((MIList)value);
|
||||
}
|
||||
|
|
|
@ -13,7 +13,7 @@ package org.eclipse.cdt.debug.mi.core.output;
|
|||
*/
|
||||
public class MIEnvironmentPWDInfo extends MIInfo {
|
||||
|
||||
String pwd = "";
|
||||
String pwd = ""; //$NON-NLS-1$
|
||||
|
||||
public MIEnvironmentPWDInfo(MIOutput o) {
|
||||
super(o);
|
||||
|
|
|
@ -11,8 +11,8 @@ public class MIFrame {
|
|||
|
||||
int level;
|
||||
long addr;
|
||||
String func = "";
|
||||
String file = "";
|
||||
String func = ""; //$NON-NLS-1$
|
||||
String file = ""; //$NON-NLS-1$
|
||||
int line;
|
||||
MIArg[] args = new MIArg[0];
|
||||
|
||||
|
@ -46,18 +46,18 @@ public class MIFrame {
|
|||
|
||||
public String toString() {
|
||||
StringBuffer buffer = new StringBuffer();
|
||||
buffer.append("level=\"" + level + "\"");
|
||||
buffer.append(",addr=\"" + Long.toHexString(addr) + "\"");
|
||||
buffer.append(",func=\"" + func + "\"");
|
||||
buffer.append(",file=\"" + file + "\"");
|
||||
buffer.append(",line=\"").append(line).append('"');
|
||||
buffer.append(",args=[");
|
||||
buffer.append("level=\"" + level + "\""); //$NON-NLS-1$//$NON-NLS-2$
|
||||
buffer.append(",addr=\"" + Long.toHexString(addr) + "\""); //$NON-NLS-1$//$NON-NLS-2$
|
||||
buffer.append(",func=\"" + func + "\""); //$NON-NLS-1$//$NON-NLS-2$
|
||||
buffer.append(",file=\"" + file + "\""); //$NON-NLS-1$//$NON-NLS-2$
|
||||
buffer.append(",line=\"").append(line).append('"'); //$NON-NLS-1$
|
||||
buffer.append(",args=["); //$NON-NLS-1$
|
||||
for (int i = 0; i < args.length; i++) {
|
||||
if (i != 0) {
|
||||
buffer.append(',');
|
||||
}
|
||||
buffer.append("{name=\"" + args[i].getName() + "\"");
|
||||
buffer.append(",value=\"" + args[i].getValue() + "\"}");
|
||||
buffer.append("{name=\"" + args[i].getName() + "\"");//$NON-NLS-1$//$NON-NLS-2$
|
||||
buffer.append(",value=\"" + args[i].getValue() + "\"}");//$NON-NLS-1$//$NON-NLS-2$
|
||||
}
|
||||
buffer.append(']');
|
||||
return buffer.toString();
|
||||
|
@ -68,27 +68,27 @@ public class MIFrame {
|
|||
for (int i = 0; i < results.length; i++) {
|
||||
String var = results[i].getVariable();
|
||||
MIValue value = results[i].getMIValue();
|
||||
String str = "";
|
||||
String str = ""; //$NON-NLS-1$
|
||||
if (value != null && value instanceof MIConst) {
|
||||
str = ((MIConst)value).getCString();
|
||||
}
|
||||
|
||||
if (var.equals("level")) {
|
||||
if (var.equals("level")) { //$NON-NLS-1$
|
||||
try {
|
||||
level = Integer.parseInt(str.trim());
|
||||
} catch (NumberFormatException e) {
|
||||
}
|
||||
} else if (var.equals("addr")) {
|
||||
} else if (var.equals("addr")) { //$NON-NLS-1$
|
||||
try {
|
||||
addr = Long.decode(str.trim()).longValue();
|
||||
} catch (NumberFormatException e) {
|
||||
}
|
||||
} else if (var.equals("func")) {
|
||||
} else if (var.equals("func")) { //$NON-NLS-1$
|
||||
func = null;
|
||||
if ( str != null ) {
|
||||
str = str.trim();
|
||||
if ( str.equals( "??" ) )
|
||||
func = "";
|
||||
if ( str.equals( "??" ) ) //$NON-NLS-1$
|
||||
func = ""; //$NON-NLS-1$
|
||||
else
|
||||
{
|
||||
// In some situations gdb returns the function names that include parameter types.
|
||||
|
@ -100,14 +100,14 @@ public class MIFrame {
|
|||
func = str;
|
||||
}
|
||||
}
|
||||
} else if (var.equals("file")) {
|
||||
} else if (var.equals("file")) { //$NON-NLS-1$
|
||||
file = str;
|
||||
} else if (var.equals("line")) {
|
||||
} else if (var.equals("line")) { //$NON-NLS-1$
|
||||
try {
|
||||
line = Integer.parseInt(str.trim());
|
||||
} catch (NumberFormatException e) {
|
||||
}
|
||||
} else if (var.equals("args")) {
|
||||
} else if (var.equals("args")) { //$NON-NLS-1$
|
||||
if (value instanceof MIList) {
|
||||
args = MIArg.getMIArgs((MIList)value);
|
||||
}
|
||||
|
|
|
@ -48,7 +48,7 @@ public class MIGDBShowDirectoriesInfo extends MIInfo {
|
|||
}
|
||||
|
||||
void parseDirectories(String d) {
|
||||
String sep = System.getProperty("path.separator", ":");
|
||||
String sep = System.getProperty("path.separator", ":"); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
StringTokenizer st = new StringTokenizer(d, sep);
|
||||
int count = st.countTokens();
|
||||
dirs = new String[count];
|
||||
|
|
|
@ -12,7 +12,7 @@ package org.eclipse.cdt.debug.mi.core.output;
|
|||
*/
|
||||
public class MIGDBShowInfo extends MIInfo {
|
||||
|
||||
String value = "";
|
||||
String value = ""; //$NON-NLS-1$
|
||||
|
||||
public MIGDBShowInfo(MIOutput o) {
|
||||
super(o);
|
||||
|
@ -31,7 +31,7 @@ public class MIGDBShowInfo extends MIInfo {
|
|||
MIResult[] results = rr.getMIResults();
|
||||
for (int i = 0; i < results.length; i++) {
|
||||
String var = results[i].getVariable();
|
||||
if (var.equals("value")) {
|
||||
if (var.equals("value")) { //$NON-NLS-1$
|
||||
MIValue val = results[i].getMIValue();
|
||||
if (val instanceof MIConst) {
|
||||
value = ((MIConst)val).getString();
|
||||
|
|
|
@ -35,7 +35,7 @@ public class MIGDBShowSolibSearchPathInfo extends MIGDBShowInfo {
|
|||
}
|
||||
|
||||
void parseDirectories(String d) {
|
||||
String sep = System.getProperty("path.separator", ":");
|
||||
String sep = System.getProperty("path.separator", ":"); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
StringTokenizer st = new StringTokenizer(d, sep);
|
||||
int count = st.countTokens();
|
||||
dirs = new String[count];
|
||||
|
|
|
@ -43,7 +43,7 @@ public class MIInfo {
|
|||
if (miOutput != null) {
|
||||
return miOutput.toString();
|
||||
}
|
||||
return "";
|
||||
return ""; //$NON-NLS-1$
|
||||
}
|
||||
|
||||
boolean isResultClass(String rc) {
|
||||
|
@ -64,7 +64,7 @@ public class MIInfo {
|
|||
MIResult[] results = rr.getMIResults();
|
||||
for (int i = 0; i < results.length; i++) {
|
||||
String var = results[i].getVariable();
|
||||
if (var.equals("msg")) {
|
||||
if (var.equals("msg")) { //$NON-NLS-1$
|
||||
MIValue value = results[i].getMIValue();
|
||||
if (value instanceof MIConst) {
|
||||
String s = ((MIConst)value).getCString();
|
||||
|
@ -74,6 +74,6 @@ public class MIInfo {
|
|||
}
|
||||
}
|
||||
}
|
||||
return "";
|
||||
return ""; //$NON-NLS-1$
|
||||
}
|
||||
}
|
||||
|
|
|
@ -52,7 +52,7 @@ public class MIInfoProgramInfo extends MIInfo {
|
|||
if (str != null && str.length() > 0) {
|
||||
str = str.replace('.', ' ');
|
||||
str = str.trim();
|
||||
if (str.startsWith("Using")) {
|
||||
if (str.startsWith("Using")) { //$NON-NLS-1$
|
||||
StringTokenizer st = new StringTokenizer(str);
|
||||
while (st.hasMoreTokens()) {
|
||||
String s = st.nextToken();
|
||||
|
|
|
@ -53,7 +53,7 @@ public class MIInfoSharedLibraryInfo extends MIInfo {
|
|||
void parseShared(String str, List aList) {
|
||||
if (!hasProcessHeader) {
|
||||
// Process the header and choose a type.
|
||||
if (str.startsWith("DLL")) {
|
||||
if (str.startsWith("DLL")) { //$NON-NLS-1$
|
||||
isUnixFormat = false;
|
||||
}
|
||||
hasProcessHeader = true;
|
||||
|
@ -77,7 +77,7 @@ public class MIInfoSharedLibraryInfo extends MIInfo {
|
|||
long from = 0;
|
||||
long to = 0;
|
||||
boolean syms = false;
|
||||
String name = "";
|
||||
String name = ""; //$NON-NLS-1$
|
||||
|
||||
for (int i = 0;(index = str.lastIndexOf(' ')) != -1 || i <= 3; i++) {
|
||||
if (index == -1) {
|
||||
|
@ -125,8 +125,8 @@ public class MIInfoSharedLibraryInfo extends MIInfo {
|
|||
if (index > 0) {
|
||||
String sub = str.substring(index).trim();
|
||||
// Go figure they do not print the "0x" to indicate hexadecimal!!
|
||||
if (!sub.startsWith("0x")) {
|
||||
sub = "0x" + sub;
|
||||
if (!sub.startsWith("0x")) { //$NON-NLS-1$
|
||||
sub = "0x" + sub; //$NON-NLS-1$
|
||||
}
|
||||
try {
|
||||
from = Long.decode(sub).longValue();
|
||||
|
|
|
@ -61,11 +61,11 @@ public class MIInfoSignalsInfo extends MIInfo {
|
|||
// ~"Signal Stop\tPrint\tPass to program\tDescription\n"
|
||||
// ~"Use the \"handle\" command to change these tables.\n"
|
||||
if (!str.startsWith("Signal ") && !str.startsWith("Use ")) {
|
||||
String signal = "";
|
||||
String signal = ""; //$NON-NLS-1$
|
||||
boolean stop = false;
|
||||
boolean print = false;
|
||||
boolean pass = false;
|
||||
String desc = "";
|
||||
String desc = ""; //$NON-NLS-1$
|
||||
|
||||
StringTokenizer tokenizer = new StringTokenizer(str);
|
||||
for (int i = 0; tokenizer.hasMoreTokens(); i++) {
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue