1
/*******************************************************************************
2
* Copyright (c) 2009, 2010 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
* Ericsson - Modified for handling of frame contexts
11
* Jens Elmenthaler (Verigy) - Added Full GDB pretty-printing support (bug 302121)
12
*******************************************************************************/
14
package org.eclipse.cdt.dsf.mi.service.command.commands;
17
import org.eclipse.cdt.dsf.debug.service.command.ICommandControlService.ICommandControlDMContext;
18
import org.eclipse.cdt.dsf.mi.service.command.output.MIOutput;
19
import org.eclipse.cdt.dsf.mi.service.command.output.MIVarListChildrenInfo;
23
* -var-list-children NAME
25
* Returns a list of the children of the specified variable object:
27
* numchild=N,children={{name=NAME,
28
* numchild=N,type=TYPE},(repeats N times)}
31
public class MIVarListChildren extends MICommand<MIVarListChildrenInfo>
36
public MIVarListChildren(ICommandControlDMContext ctx, String name) {
37
super(ctx, "-var-list-children", new String[]{name}); //$NON-NLS-1$
44
* The index of the first child to be listed, if there is one
47
* One behind the last child to be listed.
51
public MIVarListChildren(ICommandControlDMContext ctx, String name, int from, int to) {
52
super(ctx, "-var-list-children", new String[]{name, String.valueOf(from), String.valueOf(to)}); //$NON-NLS-1$
56
public MIVarListChildrenInfo getResult(MIOutput out) {
57
return new MIVarListChildrenInfo(out);