1 package jde.debugger.command;
5 import jde.debugger.Etc;
6 import jde.debugger.JDEException;
7 import jde.debugger.JDEbug;
11 * DebugSessionCommand.java
14 * Created: Fri Jan 28 21:59:32 2000
16 * @author Paul Kinnucan
17 * @version $Revision: 1.5 $
20 abstract public class DebugSessionCommand extends DebugCommand {
22 * The process (debugger process) ID that this command is
25 protected Integer m_targetProcessID;
27 public DebugSessionCommand() { }
29 public void init(Integer cmdID, String cmdName, List args) throws JDEException {
31 super.init(cmdID, cmdName, args);
33 if (cmdName.equals("quit")) return;
36 throw new JDEException("Missing application ID");
38 // the app id with which it will be known.
39 // note that we remove the arguments as we consume them from the
41 m_targetProcessID = new Integer(Etc.safeGetint(args.remove(0), "target process ID"));
43 // the app id cannot be same as the debugger ID (-1)
44 if (m_targetProcessID.equals(JDEbug.debuggerID)) {
45 throw new JDEException("Invalid Application ID");
48 } // DebugSessionCommand
52 * $Log: DebugSessionCommand.java,v $
53 * Revision 1.5 2003/01/15 05:56:26 paulk
54 * Add Petter Mahlen's changes.
56 * Revision 1.4 2001/03/24 05:42:36 paulk
57 * Updated to reflect reorganization of debugger code.
59 * Revision 1.3 2000/02/02 06:01:14 paulk
60 * Removed the get connector list code from getConnectors method and
61 * instead made the connector list a static member that is initialized
62 * once per session. Did this because it is suspected that getting the
63 * connector list on the command thread was causing the debugger to hang
64 * on some Windows/NT systems.
66 * Revision 1.2 2000/02/01 06:02:47 paulk
67 * Added special handling for quit command.
69 * Revision 1.1 2000/01/30 12:37:44 paulk
70 * Defines debug session commands (e.g., launch, attach, quit, etc.).
74 // End of DebugSessionCommand.java