mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 01:36:01 +02:00
More framework.
This commit is contained in:
parent
e2cae76b26
commit
53696af5f6
43 changed files with 710 additions and 204 deletions
|
@ -1,90 +0,0 @@
|
||||||
package org.eclipse.cdt.debug.mi.core;
|
|
||||||
|
|
||||||
import org.eclipse.cdt.debug.mi.core.command.MIBreakAfter;
|
|
||||||
import org.eclipse.cdt.debug.mi.core.command.MIBreakCondition;
|
|
||||||
import org.eclipse.cdt.debug.mi.core.command.MIBreakDelete;
|
|
||||||
import org.eclipse.cdt.debug.mi.core.command.MIBreakDisable;
|
|
||||||
import org.eclipse.cdt.debug.mi.core.command.MIBreakEnable;
|
|
||||||
import org.eclipse.cdt.debug.mi.core.command.MIBreakInsert;
|
|
||||||
import org.eclipse.cdt.debug.mi.core.command.MIBreakList;
|
|
||||||
import org.eclipse.cdt.debug.mi.core.command.MIBreakWatch;
|
|
||||||
import org.eclipse.cdt.debug.mi.core.command.MIDataDisassemble;
|
|
||||||
import org.eclipse.cdt.debug.mi.core.command.MIDataEvaluateExpression;
|
|
||||||
import org.eclipse.cdt.debug.mi.core.command.MIDataListChangedRegisters;
|
|
||||||
import org.eclipse.cdt.debug.mi.core.command.MIDataListRegisterNames;
|
|
||||||
import org.eclipse.cdt.debug.mi.core.command.MIDataListRegisterValues;
|
|
||||||
import org.eclipse.cdt.debug.mi.core.command.MIDataReadMemory;
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public class CommandFactory {
|
|
||||||
|
|
||||||
public MIBreakAfter createMIBreakAfter(int brknum, int count) {
|
|
||||||
return new MIBreakAfter(brknum, count);
|
|
||||||
}
|
|
||||||
|
|
||||||
public MIBreakCondition createMIBreakCondition (int brknum, String expr) {
|
|
||||||
return new MIBreakCondition(brknum, expr);
|
|
||||||
}
|
|
||||||
|
|
||||||
public MIBreakDelete createMIBreakDelete (int[] brknum) {
|
|
||||||
return new MIBreakDelete(brknum);
|
|
||||||
}
|
|
||||||
|
|
||||||
public MIBreakDisable createMIBreakDisable(int[] brknum) {
|
|
||||||
return new MIBreakDisable(brknum);
|
|
||||||
}
|
|
||||||
|
|
||||||
public MIBreakEnable createMIBreakEnable(int[] brknum) {
|
|
||||||
return new MIBreakEnable(brknum);
|
|
||||||
}
|
|
||||||
|
|
||||||
public MIBreakInsert createMIBreakInsert(boolean isTemporary, boolean isHardware,
|
|
||||||
String condition, int ignoreCount, String line) {
|
|
||||||
return new MIBreakInsert(isTemporary, isHardware, condition, ignoreCount, line);
|
|
||||||
}
|
|
||||||
|
|
||||||
public MIBreakInsert createMIBreakInsert(String regex) {
|
|
||||||
return new MIBreakInsert(regex);
|
|
||||||
}
|
|
||||||
|
|
||||||
public MIBreakList createMIBreakList() {
|
|
||||||
return new MIBreakList();
|
|
||||||
}
|
|
||||||
|
|
||||||
public MIBreakWatch createMIBreakWatch(boolean access, boolean read, String expression) {
|
|
||||||
return new MIBreakWatch(access, read, expression);
|
|
||||||
}
|
|
||||||
|
|
||||||
public MIDataDisassemble createMIDataDisassemble(String start, String end, boolean mixed) {
|
|
||||||
return new MIDataDisassemble(start, end, mixed);
|
|
||||||
}
|
|
||||||
|
|
||||||
public MIDataDisassemble createMIDataDisassemble(String file, int linenum, int lines, boolean mixed) {
|
|
||||||
return new MIDataDisassemble(file, linenum, lines, mixed);
|
|
||||||
}
|
|
||||||
|
|
||||||
public MIDataEvaluateExpression createMIDataEvaluateExpression(String expression) {
|
|
||||||
return new MIDataEvaluateExpression(expression);
|
|
||||||
}
|
|
||||||
|
|
||||||
public MIDataListChangedRegisters createMIDataListChangedRegisters() {
|
|
||||||
return new MIDataListChangedRegisters();
|
|
||||||
}
|
|
||||||
|
|
||||||
public MIDataListRegisterNames createMIDataListRegisterNames(int[] regno) {
|
|
||||||
return new MIDataListRegisterNames(regno);
|
|
||||||
}
|
|
||||||
|
|
||||||
public MIDataListRegisterValues createMIDataLIstRegisterValues(int fmt, int[] regno) {
|
|
||||||
return new MIDataListRegisterValues(fmt, regno);
|
|
||||||
}
|
|
||||||
|
|
||||||
public MIDataReadMemory createMIDataReadMemory(int offset, String address,
|
|
||||||
String wordFormat, int wordSize,
|
|
||||||
int rows, int cols, Character asChar) {
|
|
||||||
return new MIDataReadMemory(offset, address, wordFormat, wordSize,
|
|
||||||
rows, cols, asChar);
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,16 +0,0 @@
|
||||||
package org.eclipse.cdt.debug.mi.core;
|
|
||||||
|
|
||||||
import org.eclipse.cdt.debug.mi.core.output.MIResultRecord;
|
|
||||||
|
|
||||||
/**
|
|
||||||
*/
|
|
||||||
public class MIDataEvaluateExpressionInfo extends MIInfo{
|
|
||||||
|
|
||||||
public MIDataEvaluateExpressionInfo(MIResultRecord rr) {
|
|
||||||
super(rr);
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getValue() {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,16 +0,0 @@
|
||||||
package org.eclipse.cdt.debug.mi.core;
|
|
||||||
|
|
||||||
import org.eclipse.cdt.debug.mi.core.output.MIResultRecord;
|
|
||||||
|
|
||||||
/**
|
|
||||||
*/
|
|
||||||
public class MIDataListChangedRegistersInfo extends MIInfo {
|
|
||||||
|
|
||||||
public MIDataListChangedRegistersInfo(MIResultRecord rr) {
|
|
||||||
super(rr);
|
|
||||||
}
|
|
||||||
|
|
||||||
int [] getRegisters () {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,16 +0,0 @@
|
||||||
package org.eclipse.cdt.debug.mi.core;
|
|
||||||
|
|
||||||
import org.eclipse.cdt.debug.mi.core.output.MIResultRecord;
|
|
||||||
|
|
||||||
/**
|
|
||||||
*/
|
|
||||||
public class MIDataListRegistersNamesInfo extends MIInfo {
|
|
||||||
|
|
||||||
public MIDataListRegistersNamesInfo(MIResultRecord rr) {
|
|
||||||
super(rr);
|
|
||||||
}
|
|
||||||
|
|
||||||
String[] getRegistersNames () {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -14,8 +14,7 @@ import org.eclipse.core.runtime.IStatus;
|
||||||
* A checked exception representing a failure.
|
* A checked exception representing a failure.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class MIException extends CoreException
|
public class MIException extends CoreException {
|
||||||
{
|
|
||||||
/**
|
/**
|
||||||
* Constructor for MIException.
|
* Constructor for MIException.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,18 +0,0 @@
|
||||||
package org.eclipse.cdt.debug.mi.core;
|
|
||||||
|
|
||||||
import org.eclipse.cdt.debug.mi.core.output.MIResultRecord;
|
|
||||||
|
|
||||||
/**
|
|
||||||
*/
|
|
||||||
public class MIInfo {
|
|
||||||
|
|
||||||
MIResultRecord resultRecord;
|
|
||||||
|
|
||||||
public MIInfo(MIResultRecord record) {
|
|
||||||
resultRecord = record;
|
|
||||||
}
|
|
||||||
|
|
||||||
MIResultRecord getResultRecord () {
|
|
||||||
return resultRecord;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -7,12 +7,7 @@ import org.eclipse.core.runtime.IPluginDescriptor;
|
||||||
import org.eclipse.core.runtime.Plugin;
|
import org.eclipse.core.runtime.Plugin;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author alain
|
|
||||||
*
|
*
|
||||||
* To change this generated comment edit the template variable "typecomment":
|
|
||||||
* Window>Preferences>Java>Templates.
|
|
||||||
* To enable and disable the creation of type comments go to
|
|
||||||
* Window>Preferences>Java>Code Generation.
|
|
||||||
*/
|
*/
|
||||||
public class MIPlugin extends Plugin {
|
public class MIPlugin extends Plugin {
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,9 @@ import java.io.InputStream;
|
||||||
import java.io.OutputStream;
|
import java.io.OutputStream;
|
||||||
import java.io.Reader;
|
import java.io.Reader;
|
||||||
|
|
||||||
|
import org.eclipse.cdt.debug.mi.core.command.CommandFactory;
|
||||||
import org.eclipse.cdt.debug.mi.core.output.MIOutput;
|
import org.eclipse.cdt.debug.mi.core.output.MIOutput;
|
||||||
|
import org.eclipse.cdt.debug.mi.core.output.MIParser;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -24,12 +26,18 @@ public class MISession {
|
||||||
Reader targetStream = null;
|
Reader targetStream = null;
|
||||||
Reader logStream = null;
|
Reader logStream = null;
|
||||||
|
|
||||||
|
CommandFactory factory;
|
||||||
|
|
||||||
|
MIParser parser;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The constructor.
|
* The constructor.
|
||||||
*/
|
*/
|
||||||
MISession(InputStream i, OutputStream o) {
|
MISession(InputStream i, OutputStream o) {
|
||||||
in = i;
|
in = i;
|
||||||
out = o;
|
out = o;
|
||||||
|
factory = new CommandFactory();
|
||||||
|
parser = new MIParser();
|
||||||
txQueue = new Queue();
|
txQueue = new Queue();
|
||||||
rxQueue = new Queue();
|
rxQueue = new Queue();
|
||||||
txThread = new TxThread(this);
|
txThread = new TxThread(this);
|
||||||
|
@ -53,12 +61,39 @@ public class MISession {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set Log Stream
|
* Set Log Stream
|
||||||
*/
|
*/
|
||||||
public void setLogStreamOutput(Reader log) {
|
public void setLogStreamOutput(Reader log) {
|
||||||
logStream = log;
|
logStream = log;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public CommandFactory getCommandFactory() {
|
||||||
|
return factory;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public void setCommandFactory(CommandFactory f) {
|
||||||
|
factory = f;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public MIParser getMIParser() {
|
||||||
|
return parser;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public void setMIParser(MIParser p) {
|
||||||
|
parser = p;
|
||||||
|
}
|
||||||
|
|
||||||
Queue getTxQueue() {
|
Queue getTxQueue() {
|
||||||
return txQueue;
|
return txQueue;
|
||||||
|
@ -77,6 +112,6 @@ public class MISession {
|
||||||
}
|
}
|
||||||
|
|
||||||
MIOutput parse(String buffer) {
|
MIOutput parse(String buffer) {
|
||||||
return null;
|
return parser.parse(buffer);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
package org.eclipse.cdt.debug.mi.core.command;
|
package org.eclipse.cdt.debug.mi.core.command;
|
||||||
|
|
||||||
import org.eclipse.cdt.debug.mi.core.MIInfo;
|
import org.eclipse.cdt.debug.mi.core.output.MIInfo;
|
||||||
import org.eclipse.cdt.debug.mi.core.output.MIOutput;
|
import org.eclipse.cdt.debug.mi.core.output.MIOutput;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
package org.eclipse.cdt.debug.mi.core.command;
|
package org.eclipse.cdt.debug.mi.core.command;
|
||||||
|
|
||||||
import org.eclipse.cdt.debug.mi.core.MIInfo;
|
import org.eclipse.cdt.debug.mi.core.output.MIInfo;
|
||||||
import org.eclipse.cdt.debug.mi.core.output.MIOutput;
|
import org.eclipse.cdt.debug.mi.core.output.MIOutput;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -0,0 +1,238 @@
|
||||||
|
package org.eclipse.cdt.debug.mi.core.command;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public class CommandFactory {
|
||||||
|
|
||||||
|
public MIBreakAfter createMIBreakAfter(int brknum, int count) {
|
||||||
|
return new MIBreakAfter(brknum, count);
|
||||||
|
}
|
||||||
|
|
||||||
|
public MIBreakCondition createMIBreakCondition (int brknum, String expr) {
|
||||||
|
return new MIBreakCondition(brknum, expr);
|
||||||
|
}
|
||||||
|
|
||||||
|
public MIBreakDelete createMIBreakDelete (int[] brknum) {
|
||||||
|
return new MIBreakDelete(brknum);
|
||||||
|
}
|
||||||
|
|
||||||
|
public MIBreakDisable createMIBreakDisable(int[] brknum) {
|
||||||
|
return new MIBreakDisable(brknum);
|
||||||
|
}
|
||||||
|
|
||||||
|
public MIBreakEnable createMIBreakEnable(int[] brknum) {
|
||||||
|
return new MIBreakEnable(brknum);
|
||||||
|
}
|
||||||
|
|
||||||
|
public MIBreakInsert createMIBreakInsert(boolean isTemporary, boolean isHardware,
|
||||||
|
String condition, int ignoreCount, String line) {
|
||||||
|
return new MIBreakInsert(isTemporary, isHardware, condition, ignoreCount, line);
|
||||||
|
}
|
||||||
|
|
||||||
|
public MIBreakInsert createMIBreakInsert(String regex) {
|
||||||
|
return new MIBreakInsert(regex);
|
||||||
|
}
|
||||||
|
|
||||||
|
public MIBreakList createMIBreakList() {
|
||||||
|
return new MIBreakList();
|
||||||
|
}
|
||||||
|
|
||||||
|
public MIBreakWatch createMIBreakWatch(boolean access, boolean read, String expression) {
|
||||||
|
return new MIBreakWatch(access, read, expression);
|
||||||
|
}
|
||||||
|
|
||||||
|
public MIDataDisassemble createMIDataDisassemble(String start, String end, boolean mixed) {
|
||||||
|
return new MIDataDisassemble(start, end, mixed);
|
||||||
|
}
|
||||||
|
|
||||||
|
public MIDataDisassemble createMIDataDisassemble(String file, int linenum, int lines, boolean mixed) {
|
||||||
|
return new MIDataDisassemble(file, linenum, lines, mixed);
|
||||||
|
}
|
||||||
|
|
||||||
|
public MIDataEvaluateExpression createMIDataEvaluateExpression(String expression) {
|
||||||
|
return new MIDataEvaluateExpression(expression);
|
||||||
|
}
|
||||||
|
|
||||||
|
public MIDataListChangedRegisters createMIDataListChangedRegisters() {
|
||||||
|
return new MIDataListChangedRegisters();
|
||||||
|
}
|
||||||
|
|
||||||
|
public MIDataListRegisterNames createMIDataListRegisterNames(int[] regno) {
|
||||||
|
return new MIDataListRegisterNames(regno);
|
||||||
|
}
|
||||||
|
|
||||||
|
public MIDataListRegisterValues createMIDataLIstRegisterValues(int fmt, int[] regno) {
|
||||||
|
return new MIDataListRegisterValues(fmt, regno);
|
||||||
|
}
|
||||||
|
|
||||||
|
public MIDataReadMemory createMIDataReadMemory(int offset, String address,
|
||||||
|
String wordFormat, int wordSize,
|
||||||
|
int rows, int cols, Character asChar) {
|
||||||
|
return new MIDataReadMemory(offset, address, wordFormat, wordSize,
|
||||||
|
rows, cols, asChar);
|
||||||
|
}
|
||||||
|
|
||||||
|
public MIEnvironmentCD createMIEnvironmentCD(String pathdir) {
|
||||||
|
return new MIEnvironmentCD(pathdir);
|
||||||
|
}
|
||||||
|
|
||||||
|
public MIEnvironmentDirectory createMIEnvironmentDirectory(String pathdir) {
|
||||||
|
return new MIEnvironmentDirectory(pathdir);
|
||||||
|
}
|
||||||
|
|
||||||
|
public MIEnvironmentPath createMIEnvironmentPath(String[] paths) {
|
||||||
|
return new MIEnvironmentPath(paths);
|
||||||
|
}
|
||||||
|
|
||||||
|
public MIEnvironmentPWD createMIEnvironmentPWD() {
|
||||||
|
return new MIEnvironmentPWD();
|
||||||
|
}
|
||||||
|
|
||||||
|
public MIExecArguments createMIExecArguments(String[] args) {
|
||||||
|
return new MIExecArguments(args);
|
||||||
|
}
|
||||||
|
|
||||||
|
public MIExecContinue createMIExecContinue() {
|
||||||
|
return new MIExecContinue();
|
||||||
|
}
|
||||||
|
|
||||||
|
public MIExecFinish createMIExecFinish() {
|
||||||
|
return new MIExecFinish();
|
||||||
|
}
|
||||||
|
|
||||||
|
public MIExecInterrupt createMIExecInterrupt() {
|
||||||
|
return new MIExecInterrupt();
|
||||||
|
}
|
||||||
|
|
||||||
|
public MIExecNext createMIExecNext() {
|
||||||
|
return new MIExecNext();
|
||||||
|
}
|
||||||
|
|
||||||
|
public MIExecNextInstruction createMIExecNextInstruction() {
|
||||||
|
return new MIExecNextInstruction();
|
||||||
|
}
|
||||||
|
|
||||||
|
public MIExecReturn createMIExecReturn() {
|
||||||
|
return new MIExecReturn();
|
||||||
|
}
|
||||||
|
|
||||||
|
public MIExecRun createMIExecRun(String[] args) {
|
||||||
|
return new MIExecRun(args);
|
||||||
|
}
|
||||||
|
|
||||||
|
public MIExecStep createMIExecStep() {
|
||||||
|
return new MIExecStep();
|
||||||
|
}
|
||||||
|
|
||||||
|
public MIExecStepInstruction createMIExecStepInstruction() {
|
||||||
|
return new MIExecStepInstruction();
|
||||||
|
}
|
||||||
|
|
||||||
|
public MIExecUntil createMIExecUntil(String location) {
|
||||||
|
return new MIExecUntil(location);
|
||||||
|
}
|
||||||
|
|
||||||
|
public MIFileExecFile createMIFileExecFile(String file) {
|
||||||
|
return new MIFileExecFile(file);
|
||||||
|
}
|
||||||
|
|
||||||
|
public MIFileSymbolFile createMIFileSymbolFile(String file) {
|
||||||
|
return new MIFileSymbolFile(file);
|
||||||
|
}
|
||||||
|
|
||||||
|
public MIGDBExit createMIGDBExit() {
|
||||||
|
return new MIGDBExit();
|
||||||
|
}
|
||||||
|
|
||||||
|
public MIStackInfoDepth createMIStackInfoDepth(int depth) {
|
||||||
|
return new MIStackInfoDepth(depth);
|
||||||
|
}
|
||||||
|
|
||||||
|
public MIStackListArguments createMIStackListArguments(boolean showValue) {
|
||||||
|
return new MIStackListArguments(showValue);
|
||||||
|
}
|
||||||
|
|
||||||
|
public MIStackListArguments createMIStackListArguments(boolean showValue, int lowFrame, int highFrame) {
|
||||||
|
return new MIStackListArguments(showValue, lowFrame, highFrame);
|
||||||
|
}
|
||||||
|
|
||||||
|
public MIStackListFrames createMIStackListFrames(int lowFrame, int highFrame) {
|
||||||
|
return new MIStackListFrames(lowFrame, highFrame);
|
||||||
|
}
|
||||||
|
|
||||||
|
public MIStackListLocals createMIStackListLocals(boolean showValues) {
|
||||||
|
return new MIStackListLocals(showValues);
|
||||||
|
}
|
||||||
|
|
||||||
|
public MIStackSelectFrame createMIStackSelectFrame(int frameNum) {
|
||||||
|
return new MIStackSelectFrame(frameNum);
|
||||||
|
}
|
||||||
|
|
||||||
|
public MITargetDetach createMITargetDetach() {
|
||||||
|
return new MITargetDetach();
|
||||||
|
}
|
||||||
|
|
||||||
|
public MITargetSelect createMITargetSelect(String[] params) {
|
||||||
|
return new MITargetSelect(params);
|
||||||
|
}
|
||||||
|
|
||||||
|
public MIThreadListIds createMIThreadListIds() {
|
||||||
|
return new MIThreadListIds();
|
||||||
|
}
|
||||||
|
|
||||||
|
public MIThreadSelect createMIThreadSelect(int threadNum) {
|
||||||
|
return new MIThreadSelect(threadNum);
|
||||||
|
}
|
||||||
|
|
||||||
|
public MIVarCreate createMIVarCreate(String name, String frameAddr, String expression) {
|
||||||
|
return new MIVarCreate(name, frameAddr, expression);
|
||||||
|
}
|
||||||
|
|
||||||
|
public MIVarDelete createMIVarDelete(String name) {
|
||||||
|
return new MIVarDelete(name);
|
||||||
|
}
|
||||||
|
|
||||||
|
public MIVarSetFormat createMIVarSetFormat(String name, int format) {
|
||||||
|
return new MIVarSetFormat(name, format);
|
||||||
|
}
|
||||||
|
|
||||||
|
public MIVarShowFormat createMIVarShowFormat(String name) {
|
||||||
|
return new MIVarShowFormat(name);
|
||||||
|
}
|
||||||
|
|
||||||
|
public MIVarInfoNumChildren createMIVarInfoNumChildren(String name) {
|
||||||
|
return new MIVarInfoNumChildren(name);
|
||||||
|
}
|
||||||
|
|
||||||
|
public MIVarListChildren createMIVarListChildren(String name) {
|
||||||
|
return new MIVarListChildren(name);
|
||||||
|
}
|
||||||
|
|
||||||
|
public MIVarInfoType createMIVarInfoType(String name) {
|
||||||
|
return new MIVarInfoType(name);
|
||||||
|
}
|
||||||
|
|
||||||
|
public MIVarInfoExpression createMIVarInfoExpression(String name) {
|
||||||
|
return new MIVarInfoExpression(name);
|
||||||
|
}
|
||||||
|
|
||||||
|
public MIVarShowAttributes createMIVarShowAttributes(String name) {
|
||||||
|
return new MIVarShowAttributes(name);
|
||||||
|
}
|
||||||
|
|
||||||
|
public MIVarEvaluateExpression createMIVarEvaluateExpression(String name) {
|
||||||
|
return new MIVarEvaluateExpression(name);
|
||||||
|
}
|
||||||
|
|
||||||
|
public MIVarAssign createMIVarAssign(String name, String expr) {
|
||||||
|
return new MIVarAssign(name, expr);
|
||||||
|
}
|
||||||
|
|
||||||
|
public MIVarUpdate createMIUpdate(String name) {
|
||||||
|
return new MIVarUpdate(name);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
package org.eclipse.cdt.debug.mi.core.command;
|
package org.eclipse.cdt.debug.mi.core.command;
|
||||||
|
|
||||||
import org.eclipse.cdt.debug.mi.core.MIInfo;
|
import org.eclipse.cdt.debug.mi.core.output.MIInfo;
|
||||||
import org.eclipse.cdt.debug.mi.core.output.MIOutput;
|
import org.eclipse.cdt.debug.mi.core.output.MIOutput;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
package org.eclipse.cdt.debug.mi.core;
|
package org.eclipse.cdt.debug.mi.core.output;
|
||||||
|
|
||||||
|
|
||||||
import org.eclipse.cdt.debug.mi.core.output.MIResultRecord;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*/
|
*/
|
||||||
|
@ -16,14 +16,10 @@ public class MIBreakListInfo extends MIInfo {
|
||||||
int times;
|
int times;
|
||||||
}
|
}
|
||||||
|
|
||||||
public MIBreakListInfo(MIResultRecord rr) {
|
public MIBreakListInfo(MIOutput rr) {
|
||||||
super(rr);
|
super(rr);
|
||||||
}
|
}
|
||||||
|
|
||||||
int getCount() {
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
BreakPoint[] getBreakPoints() {
|
BreakPoint[] getBreakPoints() {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
|
@ -1,12 +1,12 @@
|
||||||
package org.eclipse.cdt.debug.mi.core;
|
package org.eclipse.cdt.debug.mi.core.output;
|
||||||
|
|
||||||
|
|
||||||
import org.eclipse.cdt.debug.mi.core.output.MIResultRecord;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*/
|
*/
|
||||||
public class MIBreakWatchInfo extends MIInfo {
|
public class MIBreakWatchInfo extends MIInfo {
|
||||||
|
|
||||||
public MIBreakWatchInfo(MIResultRecord rr) {
|
public MIBreakWatchInfo(MIOutput rr) {
|
||||||
super(rr);
|
super(rr);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
package org.eclipse.cdt.debug.mi.core;
|
package org.eclipse.cdt.debug.mi.core.output;
|
||||||
|
|
||||||
|
|
||||||
import org.eclipse.cdt.debug.mi.core.output.MIResultRecord;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*/
|
*/
|
||||||
public class MIBreakpointHitInfo extends MIInfo {
|
public class MIBreakpointHitInfo extends MIInfo {
|
||||||
|
|
||||||
public MIBreakpointHitInfo(MIResultRecord record) {
|
public MIBreakpointHitInfo(MIOutput record) {
|
||||||
super(record);
|
super(record);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
package org.eclipse.cdt.debug.mi.core;
|
package org.eclipse.cdt.debug.mi.core.output;
|
||||||
|
|
||||||
|
|
||||||
import org.eclipse.cdt.debug.mi.core.output.MIResultRecord;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*/
|
*/
|
||||||
public class MIBreakpointInfo extends MIInfo {
|
public class MIBreakpointInfo extends MIInfo {
|
||||||
|
|
||||||
public MIBreakpointInfo(MIResultRecord record) {
|
public MIBreakpointInfo(MIOutput record) {
|
||||||
super(record);
|
super(record);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
package org.eclipse.cdt.debug.mi.core;
|
package org.eclipse.cdt.debug.mi.core.output;
|
||||||
|
|
||||||
|
|
||||||
import org.eclipse.cdt.debug.mi.core.output.MIResultRecord;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*/
|
*/
|
||||||
|
@ -15,14 +15,10 @@ public class MIDataDisassembleInfo extends MIInfo {
|
||||||
String file;
|
String file;
|
||||||
}
|
}
|
||||||
|
|
||||||
public MIDataDisassembleInfo(MIResultRecord rr) {
|
public MIDataDisassembleInfo(MIOutput rr) {
|
||||||
super(rr);
|
super(rr);
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getCount() {
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ASM[] getData() {
|
public ASM[] getData() {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
package org.eclipse.cdt.debug.mi.core.output;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*/
|
||||||
|
public class MIDataEvaluateExpressionInfo extends MIInfo{
|
||||||
|
|
||||||
|
public MIDataEvaluateExpressionInfo(MIOutput rr) {
|
||||||
|
super(rr);
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getValue() {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,14 @@
|
||||||
|
package org.eclipse.cdt.debug.mi.core.output;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*/
|
||||||
|
public class MIDataListChangedRegistersInfo extends MIInfo {
|
||||||
|
|
||||||
|
public MIDataListChangedRegistersInfo(MIOutput rr) {
|
||||||
|
super(rr);
|
||||||
|
}
|
||||||
|
|
||||||
|
int[] getRegisters() {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,6 +1,6 @@
|
||||||
package org.eclipse.cdt.debug.mi.core;
|
package org.eclipse.cdt.debug.mi.core.output;
|
||||||
|
|
||||||
|
|
||||||
import org.eclipse.cdt.debug.mi.core.output.MIResultRecord;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*/
|
*/
|
||||||
|
@ -11,7 +11,7 @@ public class MIDataListRegisterValuesInfo extends MIInfo {
|
||||||
int value;
|
int value;
|
||||||
}
|
}
|
||||||
|
|
||||||
public MIDataListRegisterValuesInfo(MIResultRecord rr) {
|
public MIDataListRegisterValuesInfo(MIOutput rr) {
|
||||||
super(rr);
|
super(rr);
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,16 @@
|
||||||
|
package org.eclipse.cdt.debug.mi.core.output;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*/
|
||||||
|
public class MIDataListRegistersNamesInfo extends MIInfo {
|
||||||
|
|
||||||
|
public MIDataListRegistersNamesInfo(MIOutput rr) {
|
||||||
|
super(rr);
|
||||||
|
}
|
||||||
|
|
||||||
|
String[] getRegistersNames () {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,6 +1,6 @@
|
||||||
package org.eclipse.cdt.debug.mi.core;
|
package org.eclipse.cdt.debug.mi.core.output;
|
||||||
|
|
||||||
|
|
||||||
import org.eclipse.cdt.debug.mi.core.output.MIResultRecord;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*/
|
*/
|
||||||
|
@ -12,7 +12,7 @@ public class MIDataReadMemoryInfo extends MIInfo {
|
||||||
String ascii;
|
String ascii;
|
||||||
}
|
}
|
||||||
|
|
||||||
public MIDataReadMemoryInfo(MIResultRecord rr) {
|
public MIDataReadMemoryInfo(MIOutput rr) {
|
||||||
super(rr);
|
super(rr);
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,16 @@
|
||||||
|
package org.eclipse.cdt.debug.mi.core.output;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*/
|
||||||
|
public class MIEnvironmentPWDInfo extends MIInfo {
|
||||||
|
|
||||||
|
public MIEnvironmentPWDInfo(MIOutput o) {
|
||||||
|
super(o);
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getWorkingDirectory() {
|
||||||
|
return ".";
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,18 @@
|
||||||
|
package org.eclipse.cdt.debug.mi.core.output;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*/
|
||||||
|
public class MIInfo {
|
||||||
|
|
||||||
|
MIOutput miOutput;
|
||||||
|
|
||||||
|
public MIInfo(MIOutput record) {
|
||||||
|
miOutput = record;
|
||||||
|
}
|
||||||
|
|
||||||
|
MIOutput getMIOutput () {
|
||||||
|
return miOutput;
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,12 +1,7 @@
|
||||||
package org.eclipse.cdt.debug.mi.core.output;
|
package org.eclipse.cdt.debug.mi.core.output;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author alain
|
|
||||||
*
|
*
|
||||||
* To change this generated comment edit the template variable "typecomment":
|
|
||||||
* Window>Preferences>Java>Templates.
|
|
||||||
* To enable and disable the creation of type comments go to
|
|
||||||
* Window>Preferences>Java>Code Generation.
|
|
||||||
*/
|
*/
|
||||||
public class MINotifyAsyncOutput extends MIAsyncRecord {
|
public class MINotifyAsyncOutput extends MIAsyncRecord {
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ package org.eclipse.cdt.debug.mi.core.output;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class MIOOBRecord {
|
public class MIOOBRecord {
|
||||||
|
|
||||||
public final int ASYNC_STOPPED = 0;
|
public final int ASYNC_STOPPED = 0;
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
package org.eclipse.cdt.debug.mi.core.output;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*/
|
||||||
|
public class MIParser {
|
||||||
|
|
||||||
|
public MIOutput parse(String buffer) {
|
||||||
|
return new MIOutput();
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
package org.eclipse.cdt.debug.mi.core.output;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*/
|
||||||
|
public class MIStackInfoDepthInfo extends MIInfo {
|
||||||
|
|
||||||
|
public MIStackInfoDepthInfo(MIOutput out) {
|
||||||
|
super(out);
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getDepth() {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,25 @@
|
||||||
|
package org.eclipse.cdt.debug.mi.core.output;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*/
|
||||||
|
public class MIStackListArgumentsInfo extends MIInfo {
|
||||||
|
|
||||||
|
public class Frame {
|
||||||
|
public class Args {
|
||||||
|
String name;
|
||||||
|
String value;
|
||||||
|
}
|
||||||
|
int level;
|
||||||
|
Args[] args;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MIStackListArgumentsInfo(MIOutput out) {
|
||||||
|
super(out);
|
||||||
|
}
|
||||||
|
|
||||||
|
public Frame[] getFrames() {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,24 @@
|
||||||
|
package org.eclipse.cdt.debug.mi.core.output;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*/
|
||||||
|
public class MIStackListFramesInfo extends MIInfo {
|
||||||
|
|
||||||
|
public class Frame {
|
||||||
|
int level;
|
||||||
|
int addr;
|
||||||
|
String function;
|
||||||
|
String file;
|
||||||
|
int line;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MIStackListFramesInfo(MIOutput out) {
|
||||||
|
super(out);
|
||||||
|
}
|
||||||
|
|
||||||
|
public Frame[] getFrames() {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,21 @@
|
||||||
|
package org.eclipse.cdt.debug.mi.core.output;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*/
|
||||||
|
public class MIStackListLocalsInfo extends MIInfo {
|
||||||
|
|
||||||
|
public class Local {
|
||||||
|
String name;
|
||||||
|
String value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MIStackListLocalsInfo(MIOutput out) {
|
||||||
|
super(out);
|
||||||
|
}
|
||||||
|
|
||||||
|
public Local[] getLocals() {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
package org.eclipse.cdt.debug.mi.core.output;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*/
|
||||||
|
public class MIThreadListIdsInfo extends MIInfo {
|
||||||
|
|
||||||
|
public MIThreadListIdsInfo(MIOutput out) {
|
||||||
|
super(out);
|
||||||
|
}
|
||||||
|
|
||||||
|
public String[] getThreadIds() {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,31 @@
|
||||||
|
package org.eclipse.cdt.debug.mi.core.output;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*/
|
||||||
|
public class MIThreadSelectInfo extends MIInfo {
|
||||||
|
|
||||||
|
public class Frame {
|
||||||
|
public class Arg {
|
||||||
|
String name;
|
||||||
|
String value;
|
||||||
|
}
|
||||||
|
int level;
|
||||||
|
String function;
|
||||||
|
Arg[] args;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public MIThreadSelectInfo(MIOutput out) {
|
||||||
|
super(out);
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getNewThreadId() {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
|
||||||
|
public Frame getFrame() {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,24 @@
|
||||||
|
package org.eclipse.cdt.debug.mi.core.output;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*/
|
||||||
|
public class MIVarCreateInfo extends MIInfo {
|
||||||
|
|
||||||
|
public MIVarCreateInfo(MIOutput record) {
|
||||||
|
super(record);
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getName () {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getChildNumber() {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getType() {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
package org.eclipse.cdt.debug.mi.core.output;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*/
|
||||||
|
public class MIVarDeleteInfo extends MIInfo {
|
||||||
|
|
||||||
|
public MIVarDeleteInfo(MIOutput record) {
|
||||||
|
super(record);
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getNumberDeleted () {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
package org.eclipse.cdt.debug.mi.core.output;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*/
|
||||||
|
public class MIVarEvaluateExpressionInfo extends MIInfo {
|
||||||
|
|
||||||
|
public MIVarEvaluateExpressionInfo(MIOutput record) {
|
||||||
|
super(record);
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getValue () {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,20 @@
|
||||||
|
package org.eclipse.cdt.debug.mi.core.output;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*/
|
||||||
|
public class MIVarInfoExpressionInfo extends MIInfo {
|
||||||
|
|
||||||
|
public MIVarInfoExpressionInfo(MIOutput record) {
|
||||||
|
super(record);
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getLanguage () {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getExpression() {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
package org.eclipse.cdt.debug.mi.core.output;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*/
|
||||||
|
public class MIVarInfoNumChildrenInfo extends MIInfo {
|
||||||
|
|
||||||
|
public MIVarInfoNumChildrenInfo(MIOutput record) {
|
||||||
|
super(record);
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getChildNumber() {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
package org.eclipse.cdt.debug.mi.core.output;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*/
|
||||||
|
public class MIVarInfoTypeInfo extends MIInfo {
|
||||||
|
|
||||||
|
public MIVarInfoTypeInfo(MIOutput record) {
|
||||||
|
super(record);
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getType() {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,22 @@
|
||||||
|
package org.eclipse.cdt.debug.mi.core.output;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*/
|
||||||
|
public class MIVarListChildrenInfo extends MIInfo {
|
||||||
|
|
||||||
|
public class Children {
|
||||||
|
String name;
|
||||||
|
int numchild;
|
||||||
|
String type;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MIVarListChildrenInfo(MIOutput record) {
|
||||||
|
super(record);
|
||||||
|
}
|
||||||
|
|
||||||
|
public Children[] getChildren() {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
package org.eclipse.cdt.debug.mi.core.output;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*/
|
||||||
|
public class MIVarShowAttributesInfo extends MIInfo {
|
||||||
|
|
||||||
|
public MIVarShowAttributesInfo(MIOutput record) {
|
||||||
|
super(record);
|
||||||
|
}
|
||||||
|
|
||||||
|
public String[] getAttributes () {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
package org.eclipse.cdt.debug.mi.core.output;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*/
|
||||||
|
public class MIVarShowFormatInfo extends MIInfo {
|
||||||
|
|
||||||
|
public MIVarShowFormatInfo(MIOutput record) {
|
||||||
|
super(record);
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getFormat() {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,22 @@
|
||||||
|
package org.eclipse.cdt.debug.mi.core.output;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*/
|
||||||
|
public class MIVarUpdateInfo extends MIInfo {
|
||||||
|
|
||||||
|
public class Change {
|
||||||
|
String name;
|
||||||
|
boolean inScope;
|
||||||
|
boolean changed;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MIVarUpdateInfo(MIOutput record) {
|
||||||
|
super(record);
|
||||||
|
}
|
||||||
|
|
||||||
|
public Change[] getChangeList () {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue