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
*******************************************************************************/
12
package org.eclipse.cdt.dsf.mi.service.command.commands;
14
import org.eclipse.cdt.dsf.debug.service.command.ICommandControlService.ICommandControlDMContext;
15
import org.eclipse.cdt.dsf.mi.service.command.output.MIOutput;
16
import org.eclipse.cdt.dsf.mi.service.command.output.MIVarAssignInfo;
20
* -var-assign NAME EXPRESSION
22
* Assigns the value of EXPRESSION to the variable object specified by
23
* NAME. The object must be `editable'.
26
public class MIVarAssign extends MICommand<MIVarAssignInfo>
31
public MIVarAssign(ICommandControlDMContext ctx, String name, String expression) {
32
super(ctx, "-var-assign", new String[]{name, expression}); //$NON-NLS-1$
36
public MIVarAssignInfo getResult(MIOutput out) {
37
return new MIVarAssignInfo(out);