~ubuntu-branches/debian/sid/eclipse-cdt/sid

« back to all changes in this revision

Viewing changes to dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/commands/MIVarListChildren.java

  • Committer: Package Import Robot
  • Author(s): Jakub Adam
  • Date: 2011-10-06 21:15:04 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20111006211504-8dutmljjih0zikfv
Tags: 8.0.1-1
* New upstream release.
* Split the JNI packages into a separate architecture dependent
  package and made eclipse-cdt architecture independent.
* Install JNI libraries into multiarch aware location
* Bumped Standards-Version to 3.9.2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
7
 *
 
8
 * Contributors:
 
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
 *******************************************************************************/
 
13
 
 
14
package org.eclipse.cdt.dsf.mi.service.command.commands;
 
15
 
 
16
 
 
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;
 
20
 
 
21
/**
 
22
 * 
 
23
 *     -var-list-children NAME
 
24
 *
 
25
 *  Returns a list of the children of the specified variable object:
 
26
 *
 
27
 *     numchild=N,children={{name=NAME,
 
28
 *     numchild=N,type=TYPE},(repeats N times)}
 
29
 * 
 
30
 */
 
31
public class MIVarListChildren extends MICommand<MIVarListChildrenInfo> 
 
32
{
 
33
        /**
 
34
     * @since 1.1
 
35
     */
 
36
        public MIVarListChildren(ICommandControlDMContext ctx, String name) {
 
37
                super(ctx, "-var-list-children", new String[]{name}); //$NON-NLS-1$
 
38
        }
 
39
 
 
40
        /**
 
41
         * @param ctx
 
42
         * @param name
 
43
         * @param from
 
44
         *            The index of the first child to be listed, if there is one
 
45
         *            with this index.
 
46
         * @param to
 
47
         *            One behind the last child to be listed.
 
48
         *            
 
49
         * @since 4.0
 
50
         */
 
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$
 
53
        }
 
54
        
 
55
    @Override
 
56
    public MIVarListChildrenInfo getResult(MIOutput out) {
 
57
        return new MIVarListChildrenInfo(out);
 
58
    }
 
59
}