Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: c5ecbdc2acb4fe14cb30c6ae79a5831c4dc79861 (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
42
43
44
45
46
47
48
/*******************************************************************************
 * Copyright (c) 2009, 2010 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
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     Ericsson - Initial API and implementation
 *     Jens Elmenthaler (Verigy) - Added Full GDB pretty-printing support (bug 302121)
 *******************************************************************************/

package org.eclipse.cdt.dsf.mi.service.command.commands;

import org.eclipse.cdt.dsf.debug.service.command.ICommandControlService.ICommandControlDMContext;
import org.eclipse.cdt.dsf.mi.service.command.output.MIOutput;
import org.eclipse.cdt.dsf.mi.service.command.output.MIVarInfoPathExpressionInfo;

/**
 * 
 *     -var-info-path-expression NAME
 *     
 *     as of GDB 6.7
 *
 *  Print full expression that this variable object represents:
 *
 *     (gdb) -var-info-path-expression C.Base.public.m_size
 *     ^done,path_expr=((Base)c).m_size)
 *
 *  Cannot be used for dynamic varobjs, or varobjs that have a dynamic varobj
 *  as ancestor.
 */

public class MIVarInfoPathExpression extends MICommand<MIVarInfoPathExpressionInfo> 
{
	/**
     * @since 1.1
     */
	public MIVarInfoPathExpression(ICommandControlDMContext dmc, String name) {
		super(dmc, "-var-info-path-expression", new String[]{name}); //$NON-NLS-1$
	}

    @Override
    public MIVarInfoPathExpressionInfo getResult(MIOutput out) {
        return new MIVarInfoPathExpressionInfo(out);
    }
}

Back to the top