Initial Commit
[packages] / xemacs-packages / jde / java / src / jde / debugger / command / Finish.java
1 package jde.debugger.command;
2
3 import jde.debugger.JDEException;
4 import jde.debugger.SessionManager;
5 import jde.debugger.JDE;
6
7
8 /**
9  * 'finish' command. 
10  * <p>
11  * The way this is implemented, the finishing of a process is done in two
12  * steps: first, the debugger is told to stop running the VM handling
13  * the debuggee process. When the VM stops executing, it sends a VMDisconnected
14  * event, which means that the debugger shuts itself down properly. The Finish
15  * command handles only the first step, telling the debugger to stop executing
16  * the debuggee VM.
17  *
18  * <b>Syntax:</b>
19  * <pre>
20  * finish
21  * </pre>
22  *
23  * <b>Comments:</b>
24  * <ul>
25  * <li> if multiple VMs are being debugged, this command will
26  * kill the one corresponding to app_id, retaining others.
27  * </ul>
28  *
29  * @author Paul Kinnucan
30  * @version $Revision: 1.2 $
31  *
32  * Copyright (c) 2000, 2001, 2003    Paul Kinnucan
33  * 
34  */
35 public class Finish extends DebugProcessCommand {
36     
37   /**
38    * 
39    * @exception jde.debugger.JDEException <description>
40    */
41   public void doCommand() throws JDEException {
42     m_debugger.stopExecution();
43     JDE.commandResult(m_cmdID, "Shutting down process", CMD_OK, QUOTE);
44   }
45     
46   public Object clone() {return new Finish();}
47
48 } // Finish
49
50 /*
51  * $Log: Finish.java,v $
52  * Revision 1.2  2003/01/15 05:56:26  paulk
53  * Add Petter Mahlen's changes.
54  *
55  * Revision 1.1  2001/03/24 05:52:12  paulk
56  * Initial version.
57  *
58  *
59  */
60
61 // End of Finish.java