mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-13 11:15:38 +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;
|
||||
|
||||
long cmdTimeout = 0000; // 20 * 1000 (~ 20 secs);
|
||||
long cmdTimeout = 10000; // 10 * 1000 (~ 10 secs);
|
||||
|
||||
final int STOPPED = 0;
|
||||
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() {
|
||||
return cmdTimeout;
|
||||
}
|
||||
|
||||
/**
|
||||
* postCommand(cmd, 20 secs)
|
||||
* postCommand(cmd, 10 secs)
|
||||
*/
|
||||
public void postCommand(Command cmd) throws MIException {
|
||||
postCommand(cmd, cmdTimeout);
|
||||
|
|
|
@ -23,20 +23,24 @@ import org.eclipse.cdt.debug.mi.core.MISession;
|
|||
public class BreakpointManager implements ICBreakpointManager {
|
||||
|
||||
MISession session;
|
||||
ICBreakpoint[] breakpoints = new ICBreakpoint[0];
|
||||
|
||||
public BreakpointManager(MISession s) {
|
||||
session = s;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see org.eclipse.cdt.debug.core.cdi.ICBreakpointManager#deleteAllBreakpoints()
|
||||
*/
|
||||
public void deleteAllBreakpoints() throws CDIException {
|
||||
deleteBreakpoints(breakpoints);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see org.eclipse.cdt.debug.core.cdi.ICBreakpointManager#deleteBreakpoint(ICBreakpoint)
|
||||
*/
|
||||
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()
|
||||
*/
|
||||
public ICBreakpoint[] getBreakpoints() throws CDIException {
|
||||
return null;
|
||||
return breakpoints;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -106,5 +110,4 @@ public class BreakpointManager implements ICBreakpointManager {
|
|||
public ICSession getSession() {
|
||||
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.ICBreakpointManager;
|
||||
import org.eclipse.cdt.debug.core.cdi.ICDebugConfiguration;
|
||||
import org.eclipse.cdt.debug.core.cdi.ICEventManager;
|
||||
import org.eclipse.cdt.debug.core.cdi.ICExpressionManager;
|
||||
import org.eclipse.cdt.debug.core.cdi.ICMemoryManager;
|
||||
|
@ -123,4 +124,11 @@ public class CSession implements ICSession {
|
|||
session.terminate();
|
||||
}
|
||||
|
||||
/**
|
||||
* @see org.eclipse.cdt.debug.core.cdi.ICSuration()
|
||||
*/
|
||||
public ICDebugConfiguration getConfiguration() {
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue