1
/*******************************************************************************
2
* Copyright (c) 2000, 2007 QNX Software Systems and others.
3
* All rights reserved. This program and the accompanying materials
4
* are made available under the terms of the Eclipse Public License v1.0
5
* which accompanies this distribution, and is available at
6
* http://www.eclipse.org/legal/epl-v10.html
9
* QNX Software Systems - Initial API and implementation
10
* Wind River Systems - Modified for new DSF Reference Implementation
11
*******************************************************************************/
13
package org.eclipse.cdt.dsf.mi.service.command.commands;
15
import org.eclipse.cdt.dsf.debug.service.IRunControl.IExecutionDMContext;
16
import org.eclipse.cdt.dsf.mi.service.command.output.MIInfo;
20
* -exec-continue [--all | --thread-group ID]
22
* Asynchronous command. Resumes the execution of the inferior program
23
* until a breakpoint is encountered, or until the inferior exits.
26
public class MIExecContinue extends MICommand<MIInfo>
28
public MIExecContinue(IExecutionDMContext dmc) {
35
public MIExecContinue(IExecutionDMContext dmc, boolean allThreads) {
36
this(dmc, allThreads, null);
42
public MIExecContinue(IExecutionDMContext dmc, String groupId) {
43
this(dmc, false, groupId);
47
* The parameters allThreads and groupId are mutually exclusive. allThreads must be false
48
* if we are to use groupId. The value of this method is to only have one place
49
* where we use the hard-coded strings.
51
private MIExecContinue(IExecutionDMContext dmc, boolean allThreads, String groupId) {
52
super(dmc, "-exec-continue"); //$NON-NLS-1$
54
setParameters(new String[] { "--all" }); //$NON-NLS-1$
55
} else if (groupId != null) {
56
setParameters(new String[] { "--thread-group", groupId }); //$NON-NLS-1$