1
/*******************************************************************************
2
* Copyright (c) 2000, 2006 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
*******************************************************************************/
11
package org.eclipse.cdt.dsf.mi.service.command.output;
15
* GDB/MI var-info-type
17
public class MIVarInfoTypeInfo extends MIInfo {
19
String type = ""; //$NON-NLS-1$
21
public MIVarInfoTypeInfo(MIOutput record) {
24
MIOutput out = getMIOutput();
25
MIResultRecord rr = out.getMIResultRecord();
27
MIResult[] results = rr.getMIResults();
28
for (int i = 0; i < results.length; i++) {
29
String var = results[i].getVariable();
30
if (var.equals("type")) { //$NON-NLS-1$
31
MIValue value = results[i].getMIValue();
32
if (value instanceof MIConst) {
33
type = ((MIConst)value).getString();
41
public String getType() {