1
/*******************************************************************************
2
* Copyright (c) 2008, 2009 Wind River 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
* Wind River Systems - initial API and implementation
10
*******************************************************************************/
11
package org.eclipse.cdt.examples.dsf.pda.service.commands;
13
import org.eclipse.cdt.dsf.concurrent.Immutable;
14
import org.eclipse.cdt.examples.dsf.pda.service.PDAThreadDMContext;
17
* Retrieves variable value
20
* C: var {thread_id} {frame_number} {variable_name}
24
* error: invalid thread
25
* error: variable undefined
29
public class PDAVarCommand extends AbstractPDACommand<PDACommandResult> {
31
public PDAVarCommand(PDAThreadDMContext thread, int frameId, String name) {
32
super(thread, "var " + thread.getID() + " " + frameId + " " + name);
36
public PDACommandResult createResult(String resultText) {
37
return new PDACommandResult(resultText);