~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/CLIInfoThreads.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) 2000, 2009 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 new DSF Reference Implementation
 
11
 *******************************************************************************/
 
12
 
 
13
package org.eclipse.cdt.dsf.mi.service.command.commands;
 
14
 
 
15
 
 
16
 
 
17
import org.eclipse.cdt.dsf.debug.service.IRunControl.IContainerDMContext;
 
18
import org.eclipse.cdt.dsf.mi.service.command.output.CLIInfoThreadsInfo;
 
19
import org.eclipse.cdt.dsf.mi.service.command.output.MIInfo;
 
20
import org.eclipse.cdt.dsf.mi.service.command.output.MIOutput;
 
21
 
 
22
/**
 
23
 * 
 
24
 *    info threads
 
25
 *
 
26
 */
 
27
public class CLIInfoThreads extends CLICommand<CLIInfoThreadsInfo> {
 
28
 
 
29
    public CLIInfoThreads(IContainerDMContext ctx) {
 
30
                super(ctx, "info threads"); //$NON-NLS-1$
 
31
        }
 
32
 
 
33
        @Override
 
34
        public CLIInfoThreadsInfo getResult(MIOutput output) {
 
35
                return (CLIInfoThreadsInfo)getMIInfo(output);
 
36
        }
 
37
 
 
38
        public MIInfo getMIInfo(MIOutput out) {
 
39
                MIInfo info = null;
 
40
                if (out != null) {
 
41
                        info = new CLIInfoThreadsInfo(out);
 
42
                }
 
43
                return info;
 
44
        }
 
45
}