Community
Participate
Working Groups
// When doing remote debugging, we use -exec-continue instead of -exec-run
execCommand = getCommandFactory().createMIExecContinue(containerDmc);
} else {
execCommand = getCommandFactory().createMIExecRun(containerDmc, new String[0]);
execCommand = getCommandFactory().createMIExecRun(containerDmc);
}
boolean stopInMain = false;
fExecCommand = getCommandFactory().createMIExecContinue(fContainerDmc);
fExecCommand = getCommandFactory().createMIExecRun(fContainerDmc, new String[0]);
fExecCommand = getCommandFactory().createMIExecRun(fContainerDmc);
rm.done();
}},
return new MIExecReturn(dmc);
public ICommand<MIInfo> createMIExecReturn(IFrameDMContext dmc, String arg) {
return new MIExecReturn(dmc, arg);
public ICommand<MIInfo> createMIExecReverseContinue(IExecutionDMContext dmc) {
return new MIExecReverseContinue(dmc);
return new MIExecRun(dmc);
public ICommand<MIInfo> createMIExecRun(IExecutionDMContext dmc, String[] args) {
return new MIExecRun(dmc, args);
public ICommand<MIInfo> createMIExecStepInstruction(IExecutionDMContext dmc) {
return new MIExecStepInstruction(dmc);
public class MIBreakAfter extends MICommand<MIInfo>
{
public MIBreakAfter(IBreakpointsTargetDMContext ctx, int breakpoint, int ignoreCount) {
super(ctx, "-break-after"); //$NON-NLS-1$
super(ctx, "-break-after", new String[] { Integer.toString(breakpoint), Integer.toString(ignoreCount) }); //$NON-NLS-1$
setParameters(new String[] { Integer.toString(breakpoint), Integer.toString(ignoreCount) });
this(ctx, operation, empty, empty);
public MICommand(IDMContext ctx, String operation, String[] options) {
public MICommand(IDMContext ctx, String operation, String[] params) {
this(ctx, operation, options, empty);
this(ctx, operation, empty, params);
public MICommand(IDMContext ctx, String operation, String[] options, String[] params) {
public class MIEnvironmentDirectory extends MICommand<MIInfo> {
public MIEnvironmentDirectory(IDMContext ctx, String[] paths, boolean reset) {
super(ctx, "-environment-directory"); //$NON-NLS-1$
super(ctx, "-environment-directory", paths); //$NON-NLS-1$
String[] options;
if (reset) {
if (paths == null) {
setOptions(new String[] {"-r"}); //$NON-NLS-1$
options = new String[] {"-r"}; //$NON-NLS-1$
options = new String[paths.length + 1];
options[0] = "-r"; //$NON-NLS-1$
for (int i = 1; i < options.length; i++) {
options[i] = paths[i-1];
options = paths;
setOptions(options);
public MIExecReturn(IFrameDMContext dmc) {
super(dmc, "-exec-return"); //$NON-NLS-1$
public MIExecReturn(IFrameDMContext dmc, String arg) {
super(dmc, "-exec-return", new String[] { arg }); //$NON-NLS-1$
public MIExecRun(IExecutionDMContext dmc) {
super(dmc, "-exec-run"); //$NON-NLS-1$
public MIExecRun(IExecutionDMContext dmc, String[] args) {
super(dmc, "-exec-run", args); //$NON-NLS-1$
/*******************************************************************************
* Copyright (c) 2000, 2007 QNX Software Systems and others.
* Copyright (c) 2000, 2010 QNX Software 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
* @param oper
*/
public MIInterpreterExec(IDMContext ctx, String interpreter, String cmd) {
super(ctx, "-interpreter-exec", new String[]{interpreter}, new String[] {cmd}); //$NON-NLS-1$
super(ctx, "-interpreter-exec", new String[] {interpreter, cmd}); //$NON-NLS-1$
public class MIStackSelectFrame extends MICommand<MIInfo> {
public MIStackSelectFrame(IDMContext ctx, int frameNum) {
super(ctx, "-stack-select-frame", new String[]{Integer.toString(frameNum)}, new String[0]); //$NON-NLS-1$
super(ctx, "-stack-select-frame", new String[]{Integer.toString(frameNum)}); //$NON-NLS-1$
@Override
public class MIThreadSelect extends MICommand<MIInfo>
public MIThreadSelect(IDMContext ctx, int threadNum) {
super(ctx, "-thread-select", new String[]{Integer.toString(threadNum)}); //$NON-NLS-1$
this(ctx, Integer.toString(threadNum));
/**
* @since 1.1
public MIVarUpdate(ICommandControlDMContext dmc, String name) {
super(dmc, "-var-update", new String[] { "1" }, new String[] { name }); //$NON-NLS-1$//$NON-NLS-2$
super(dmc, "-var-update", new String[] { "1", name }); //$NON-NLS-1$//$NON-NLS-2$