1 package jde.debugger.command;
2 import jde.debugger.JDEException;
3 import jde.debugger.Debugger;
4 import jde.debugger.SessionManager;
8 * Attaches to an already running application through shared memory.
13 * attach_shmem app_id name
18 * <li> The debugee vm has to have been launched with the right parameters.
19 * See the <italic>Connection and Invocation</italic> section of the
23 * Copyright (c) 2000, 2001, 2003 Paul Kinnucan
25 * @author Paul Kinnucan
26 * @version $Revision: 1.4 $
28 public class AttachShmem extends DebugSessionCommand {
30 protected void doCommand() throws JDEException {
31 // XXX - fix the 'true' here, and define a better way to determine
32 // whether to use a GUI or not.
33 Debugger debugger = new Debugger(m_targetProcessID, true);
35 SessionManager.registerDebugger(debugger);
38 debugger.attachVMShmem(m_args);
41 catch (JDEException e) {
42 SessionManager.deregisterDebugger(debugger);
46 debugger.signalCommandResult(m_cmdID, null, CMD_OK);
49 public Object clone() {return new AttachShmem();}
56 * $Log: AttachShmem.java,v $
57 * Revision 1.4 2003/01/15 05:56:26 paulk
58 * Add Petter Mahlen's changes.
60 * Revision 1.3 2001/03/24 05:42:36 paulk
61 * Updated to reflect reorganization of debugger code.
63 * Revision 1.2 2000/02/02 05:58:12 paulk
64 * Added command succeeded messages.
66 * Revision 1.1 2000/01/31 12:44:15 paulk
67 * Attach existing application through shared memory.
71 // End of AttachShmem.java