1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

Address minor review comments from review 41198

Change-Id: I8d5ddd9426babd0577e1f8fb5e4fdb6b7b7dfbe3
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
This commit is contained in:
Marc Khouzam 2015-04-06 15:27:41 -04:00 committed by Gerrit Code Review @ Eclipse.org
parent 6993415180
commit b31476c87b
2 changed files with 8 additions and 5 deletions

View file

@ -15,7 +15,6 @@ package org.eclipse.cdt.dsf.mi.service.command.output;
import org.eclipse.cdt.dsf.debug.service.command.ICommand;
import org.eclipse.cdt.dsf.debug.service.command.ICommandResult;
import org.eclipse.cdt.dsf.gdb.GDBTypeParser.GDBType;
import org.eclipse.cdt.dsf.mi.service.MIVariableManager;
import org.eclipse.cdt.dsf.mi.service.MIVariableManager.MIVariableObject;
import org.eclipse.cdt.dsf.mi.service.command.commands.ExprMetaGetChildCount;
@ -74,7 +73,7 @@ public class ExprMetaGetVarInfo implements ICommandResult {
/**
* @since 4.7
*/
public ExprMetaGetVarInfo(String e, MIVariableManager.MIVariableObject varObj)
public ExprMetaGetVarInfo(String e, MIVariableObject varObj)
{
// We only provide the hint here. It will be used for hasChildren()
// To obtain the correct number of children, the user should use
@ -82,10 +81,14 @@ public class ExprMetaGetVarInfo implements ICommandResult {
this(e, varObj, varObj.getNumChildrenHint());
}
/** Return raw MI fields for this variable.
/**
* Return raw MI fields for this variable or null if
* no available.
* @since 4.7
*/
public MITuple getRawFields() { return varObj.getRawFields(); }
public MITuple getRawFields() {
return varObj != null ? varObj.getRawFields() : null;
}
public String getExpr() { return expression; }

View file

@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2000, 2010 QNX Software Systems and others.
* Copyright (c) 2000, 2015 QNX Software Systems 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