Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: c817e10dd0e2e01702be36ccb3338805644dbd28 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*******************************************************************************
 * Copyright (c) 2000, 2009 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
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     QNX Software Systems - Initial API and implementation
 *     Wind River Systems   - Modified for new DSF Reference Implementation
 *******************************************************************************/
 
package org.eclipse.cdt.dsf.mi.service.command.commands;

import org.eclipse.cdt.dsf.debug.service.IStack.IFrameDMContext;
import org.eclipse.cdt.dsf.mi.service.command.output.MIInfo;

/**
 * 
 *  -exec-return [arg]
 *
 *  <p>
 *  Makes current function return immediately.  Doesn't execute the
 *  inferior.  Displays the new current frame.
 *  </p>
 *  <p>
 *  The <code>-exec-return</code> command operates on the selected stack 
 *  frame.  Therefore the constructor requires a stack frame context.
 *  </p>
 * 
 */
public class MIExecReturn extends MICommand<MIInfo> 
{
    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$
    }
}

Back to the top