1
/*******************************************************************************
2
* Copyright (c) 2009 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
* Ericsson - Modified for handling of frame contexts
12
*******************************************************************************/
14
package org.eclipse.cdt.dsf.mi.service.command.commands;
16
import org.eclipse.cdt.dsf.debug.service.command.ICommandControlService.ICommandControlDMContext;
17
import org.eclipse.cdt.dsf.mi.service.command.output.MIOutput;
18
import org.eclipse.cdt.dsf.mi.service.command.output.MIVarEvaluateExpressionInfo;
22
* -var-evaluate-expression NAME
24
* Evaluates the expression that is represented by the specified
25
* variable object and returns its value as a string in the current format
26
* specified for the object:
31
public class MIVarEvaluateExpression extends MICommand<MIVarEvaluateExpressionInfo> {
36
public MIVarEvaluateExpression(ICommandControlDMContext dmc, String name) {
37
super(dmc, "-var-evaluate-expression", new String[] { name }); //$NON-NLS-1$
41
public MIVarEvaluateExpressionInfo getResult(MIOutput out) {
42
return new MIVarEvaluateExpressionInfo(out);