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

« back to all changes in this revision

Viewing changes to debug/org.eclipse.cdt.debug.mi.core/mi/org/eclipse/cdt/debug/mi/core/command/CLISignal.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, 2006 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
 *******************************************************************************/
 
11
 
 
12
package org.eclipse.cdt.debug.mi.core.command;
 
13
 
 
14
import org.eclipse.cdt.debug.mi.core.output.MIOutput;
 
15
import org.eclipse.cdt.debug.mi.core.output.MIResultRecord;
 
16
 
 
17
 
 
18
 
 
19
/**
 
20
 * 
 
21
 *    signal SIGUSR1
 
22
 *
 
23
 */
 
24
public class CLISignal extends CLICommand {
 
25
 
 
26
        MIOutput out;
 
27
 
 
28
        public CLISignal(String arg) {
 
29
                super("signal " + arg); //$NON-NLS-1$
 
30
        }
 
31
 
 
32
        /**
 
33
         *  This is a CLI command contraly to
 
34
         *  the -exec-continue or -exec-run
 
35
         *  it does not return so we have to fake
 
36
         *  a return value. We return "^running"
 
37
         */
 
38
        public MIOutput getMIOutput() {
 
39
                if (out == null) {
 
40
                        out =  new MIOutput();
 
41
                        MIResultRecord rr = new MIResultRecord();
 
42
                        rr.setToken(getToken());
 
43
                        rr.setResultClass(MIResultRecord.RUNNING);
 
44
                        out.setMIResultRecord(rr);
 
45
                }
 
46
                return out;
 
47
        }
 
48
 
 
49
}