mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-14 03:35:37 +02:00
starting the CDI implementation.
This commit is contained in:
parent
ad99764744
commit
7ce1db8c1d
3 changed files with 16 additions and 5 deletions
|
@ -39,7 +39,7 @@ public class MISession extends Observable {
|
||||||
|
|
||||||
MIParser parser;
|
MIParser parser;
|
||||||
|
|
||||||
long cmdTimeout = 0000; // 20 * 1000 (~ 20 secs);
|
long cmdTimeout = 10000; // 10 * 1000 (~ 10 secs);
|
||||||
|
|
||||||
final int STOPPED = 0;
|
final int STOPPED = 0;
|
||||||
final int RUNNING = 1;
|
final int RUNNING = 1;
|
||||||
|
@ -144,14 +144,14 @@ public class MISession extends Observable {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the default Command Timeout, default 20 secs.
|
* Return the default Command Timeout, default 10 secs.
|
||||||
*/
|
*/
|
||||||
public long getCommandTimeout() {
|
public long getCommandTimeout() {
|
||||||
return cmdTimeout;
|
return cmdTimeout;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* postCommand(cmd, 20 secs)
|
* postCommand(cmd, 10 secs)
|
||||||
*/
|
*/
|
||||||
public void postCommand(Command cmd) throws MIException {
|
public void postCommand(Command cmd) throws MIException {
|
||||||
postCommand(cmd, cmdTimeout);
|
postCommand(cmd, cmdTimeout);
|
||||||
|
|
|
@ -23,20 +23,24 @@ import org.eclipse.cdt.debug.mi.core.MISession;
|
||||||
public class BreakpointManager implements ICBreakpointManager {
|
public class BreakpointManager implements ICBreakpointManager {
|
||||||
|
|
||||||
MISession session;
|
MISession session;
|
||||||
|
ICBreakpoint[] breakpoints = new ICBreakpoint[0];
|
||||||
|
|
||||||
public BreakpointManager(MISession s) {
|
public BreakpointManager(MISession s) {
|
||||||
session = s;
|
session = s;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see org.eclipse.cdt.debug.core.cdi.ICBreakpointManager#deleteAllBreakpoints()
|
* @see org.eclipse.cdt.debug.core.cdi.ICBreakpointManager#deleteAllBreakpoints()
|
||||||
*/
|
*/
|
||||||
public void deleteAllBreakpoints() throws CDIException {
|
public void deleteAllBreakpoints() throws CDIException {
|
||||||
|
deleteBreakpoints(breakpoints);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see org.eclipse.cdt.debug.core.cdi.ICBreakpointManager#deleteBreakpoint(ICBreakpoint)
|
* @see org.eclipse.cdt.debug.core.cdi.ICBreakpointManager#deleteBreakpoint(ICBreakpoint)
|
||||||
*/
|
*/
|
||||||
public void deleteBreakpoint(ICBreakpoint breakpoint) throws CDIException {
|
public void deleteBreakpoint(ICBreakpoint breakpoint) throws CDIException {
|
||||||
|
deleteBreakpoints(new ICBreakpoint[]{breakpoint});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -58,7 +62,7 @@ public class BreakpointManager implements ICBreakpointManager {
|
||||||
* @see org.eclipse.cdt.debug.core.cdi.ICBreakpointManager#getBreakpoints()
|
* @see org.eclipse.cdt.debug.core.cdi.ICBreakpointManager#getBreakpoints()
|
||||||
*/
|
*/
|
||||||
public ICBreakpoint[] getBreakpoints() throws CDIException {
|
public ICBreakpoint[] getBreakpoints() throws CDIException {
|
||||||
return null;
|
return breakpoints;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -106,5 +110,4 @@ public class BreakpointManager implements ICBreakpointManager {
|
||||||
public ICSession getSession() {
|
public ICSession getSession() {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,6 +10,7 @@ import java.util.Properties;
|
||||||
|
|
||||||
import org.eclipse.cdt.debug.core.cdi.CDIException;
|
import org.eclipse.cdt.debug.core.cdi.CDIException;
|
||||||
import org.eclipse.cdt.debug.core.cdi.ICBreakpointManager;
|
import org.eclipse.cdt.debug.core.cdi.ICBreakpointManager;
|
||||||
|
import org.eclipse.cdt.debug.core.cdi.ICDebugConfiguration;
|
||||||
import org.eclipse.cdt.debug.core.cdi.ICEventManager;
|
import org.eclipse.cdt.debug.core.cdi.ICEventManager;
|
||||||
import org.eclipse.cdt.debug.core.cdi.ICExpressionManager;
|
import org.eclipse.cdt.debug.core.cdi.ICExpressionManager;
|
||||||
import org.eclipse.cdt.debug.core.cdi.ICMemoryManager;
|
import org.eclipse.cdt.debug.core.cdi.ICMemoryManager;
|
||||||
|
@ -123,4 +124,11 @@ public class CSession implements ICSession {
|
||||||
session.terminate();
|
session.terminate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see org.eclipse.cdt.debug.core.cdi.ICSuration()
|
||||||
|
*/
|
||||||
|
public ICDebugConfiguration getConfiguration() {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue