mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-20 15:35:24 +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:
parent
6993415180
commit
b31476c87b
2 changed files with 8 additions and 5 deletions
|
@ -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.ICommand;
|
||||||
import org.eclipse.cdt.dsf.debug.service.command.ICommandResult;
|
import org.eclipse.cdt.dsf.debug.service.command.ICommandResult;
|
||||||
import org.eclipse.cdt.dsf.gdb.GDBTypeParser.GDBType;
|
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.MIVariableManager.MIVariableObject;
|
||||||
import org.eclipse.cdt.dsf.mi.service.command.commands.ExprMetaGetChildCount;
|
import org.eclipse.cdt.dsf.mi.service.command.commands.ExprMetaGetChildCount;
|
||||||
|
|
||||||
|
@ -74,7 +73,7 @@ public class ExprMetaGetVarInfo implements ICommandResult {
|
||||||
/**
|
/**
|
||||||
* @since 4.7
|
* @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()
|
// We only provide the hint here. It will be used for hasChildren()
|
||||||
// To obtain the correct number of children, the user should use
|
// 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());
|
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
|
* @since 4.7
|
||||||
*/
|
*/
|
||||||
public MITuple getRawFields() { return varObj.getRawFields(); }
|
public MITuple getRawFields() {
|
||||||
|
return varObj != null ? varObj.getRawFields() : null;
|
||||||
|
}
|
||||||
|
|
||||||
public String getExpr() { return expression; }
|
public String getExpr() { return expression; }
|
||||||
|
|
||||||
|
|
|
@ -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
|
* All rights reserved. This program and the accompanying materials
|
||||||
* are made available under the terms of the Eclipse Public License v1.0
|
* are made available under the terms of the Eclipse Public License v1.0
|
||||||
* which accompanies this distribution, and is available at
|
* which accompanies this distribution, and is available at
|
||||||
|
|
Loading…
Add table
Reference in a new issue