mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Bug 334463: [run control] Need a way to know if we are in non-stop mode
This commit is contained in:
parent
76b5f224e5
commit
9cdfcf0848
3 changed files with 34 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2006, 2010 Wind River Systems and others.
|
||||
* Copyright (c) 2006, 2011 Wind River Systems and others.
|
||||
* All rights reserved. This program and the accompanying materials
|
||||
* are made available under the terms of the Eclipse Public License v1.0
|
||||
* which accompanies this distribution, and is available at
|
||||
|
@ -1459,6 +1459,11 @@ public class GDBRunControl_7_0_NS extends AbstractDsfService implements IMIRunCo
|
|||
}
|
||||
}
|
||||
|
||||
/** @since 4.0 */
|
||||
public IRunMode getRunMode() {
|
||||
return MIRunMode.NON_STOP;
|
||||
}
|
||||
|
||||
/**
|
||||
* See bug 196154
|
||||
*
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2009, 2010 Ericsson and others.
|
||||
* Copyright (c) 2009, 2011 Ericsson and others.
|
||||
* All rights reserved. This program and the accompanying materials
|
||||
* are made available under the terms of the Eclipse Public License v1.0
|
||||
* which accompanies this distribution, and is available at
|
||||
|
@ -36,5 +36,27 @@ public interface IMIRunControl extends IRunControl2
|
|||
*/
|
||||
public void executeWithTargetAvailable(IDMContext ctx, Sequence.Step[] stepsToExecute, RequestMonitor rm);
|
||||
|
||||
/**
|
||||
* Generic interface for different possible Run modes such as Non-Stop or All-Stop.
|
||||
* Using this interface allows to extend the list of RunModes.
|
||||
*
|
||||
* @since 4.0
|
||||
*/
|
||||
public interface IRunMode {};
|
||||
|
||||
/**
|
||||
* The run-modes supported by GDB.
|
||||
*
|
||||
* @since 4.0
|
||||
*/
|
||||
public enum MIRunMode implements IRunMode { ALL_STOP, NON_STOP };
|
||||
|
||||
/**
|
||||
* Returns the RunMode that is currently being used by this RunControl service.
|
||||
* @returns The current RunMode used by this service.
|
||||
*
|
||||
* @since 4.0
|
||||
*/
|
||||
public IRunMode getRunMode();
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2006, 2010 Wind River Systems and others.
|
||||
* Copyright (c) 2006, 2011 Wind River Systems and others.
|
||||
* All rights reserved. This program and the accompanying materials
|
||||
* are made available under the terms of the Eclipse Public License v1.0
|
||||
* which accompanies this distribution, and is available at
|
||||
|
@ -1235,4 +1235,8 @@ public class MIRunControl extends AbstractDsfService implements IMIRunControl, I
|
|||
}
|
||||
}
|
||||
|
||||
/** @since 4.0 */
|
||||
public IRunMode getRunMode() {
|
||||
return MIRunMode.ALL_STOP;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue