mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Bug 405120 - Reverse run-control operation still enabled during trace
visualization Change-Id: I28a127b7ba2ce94eec30025a4bee925c99b494a5 Reviewed-on: https://git.eclipse.org/r/11709 Reviewed-by: Marc Khouzam <marc.khouzam@ericsson.com> IP-Clean: Marc Khouzam <marc.khouzam@ericsson.com> Tested-by: Marc Khouzam <marc.khouzam@ericsson.com>
This commit is contained in:
parent
ea2bbceb0e
commit
ea9ca832e0
1 changed files with 16 additions and 4 deletions
|
@ -207,7 +207,7 @@ public class GDBRunControl_7_0 extends MIRunControl implements IReverseRunContro
|
|||
*/
|
||||
@Override
|
||||
public void canResume(IExecutionDMContext context, DataRequestMonitor<Boolean> rm) {
|
||||
if (fRunControlOperationsEnabled == false) {
|
||||
if (!fRunControlOperationsEnabled) {
|
||||
rm.setData(false);
|
||||
rm.done();
|
||||
return;
|
||||
|
@ -220,7 +220,7 @@ public class GDBRunControl_7_0 extends MIRunControl implements IReverseRunContro
|
|||
*/
|
||||
@Override
|
||||
public void canSuspend(IExecutionDMContext context, DataRequestMonitor<Boolean> rm) {
|
||||
if (fRunControlOperationsEnabled == false) {
|
||||
if (!fRunControlOperationsEnabled) {
|
||||
rm.setData(false);
|
||||
rm.done();
|
||||
return;
|
||||
|
@ -233,7 +233,7 @@ public class GDBRunControl_7_0 extends MIRunControl implements IReverseRunContro
|
|||
*/
|
||||
@Override
|
||||
public void canStep(final IExecutionDMContext context, StepType stepType, final DataRequestMonitor<Boolean> rm) {
|
||||
if (fRunControlOperationsEnabled == false) {
|
||||
if (!fRunControlOperationsEnabled) {
|
||||
rm.setData(false);
|
||||
rm.done();
|
||||
return;
|
||||
|
@ -273,6 +273,12 @@ public class GDBRunControl_7_0 extends MIRunControl implements IReverseRunContro
|
|||
/** @since 2.0 */
|
||||
@Override
|
||||
public void canReverseResume(IExecutionDMContext context, DataRequestMonitor<Boolean> rm) {
|
||||
if (!fRunControlOperationsEnabled) {
|
||||
rm.setData(false);
|
||||
rm.done();
|
||||
return;
|
||||
}
|
||||
|
||||
rm.setData(fReverseModeEnabled && doCanResume(context));
|
||||
rm.done();
|
||||
}
|
||||
|
@ -280,7 +286,13 @@ public class GDBRunControl_7_0 extends MIRunControl implements IReverseRunContro
|
|||
/** @since 2.0 */
|
||||
@Override
|
||||
public void canReverseStep(final IExecutionDMContext context, StepType stepType, final DataRequestMonitor<Boolean> rm) {
|
||||
if (context instanceof IContainerDMContext) {
|
||||
if (!fRunControlOperationsEnabled) {
|
||||
rm.setData(false);
|
||||
rm.done();
|
||||
return;
|
||||
}
|
||||
|
||||
if (context instanceof IContainerDMContext) {
|
||||
rm.setData(false);
|
||||
rm.done();
|
||||
return;
|
||||
|
|
Loading…
Add table
Reference in a new issue