/[classpath]/classpath/gnu/classpath/jdwp/processor/VirtualMachineCommandSet.java
ViewVC logotype

Diff of /classpath/gnu/classpath/jdwp/processor/VirtualMachineCommandSet.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1.2.3 by gnu_andrew, Sat Sep 10 15:31:36 2005 UTC revision 1.1.2.4 by gnu_andrew, Tue Sep 20 18:46:23 2005 UTC
# Line 67  public class VirtualMachineCommandSet Line 67  public class VirtualMachineCommandSet
67    public boolean runCommand(ByteBuffer bb, DataOutputStream os, byte command)    public boolean runCommand(ByteBuffer bb, DataOutputStream os, byte command)
68      throws JdwpException      throws JdwpException
69    {    {
70      boolean keepRunning = true;      boolean shutdown = false;
71      try      try
72        {        {
73          switch (command)          switch (command)
# Line 91  public class VirtualMachineCommandSet Line 91  public class VirtualMachineCommandSet
91              executeIDsizes(bb, os);              executeIDsizes(bb, os);
92              break;              break;
93            case JdwpConstants.CommandSet.VirtualMachine.DISPOSE:            case JdwpConstants.CommandSet.VirtualMachine.DISPOSE:
94              keepRunning = false;              shutdown = true;
95              executeDispose(bb, os);              executeDispose(bb, os);
96              break;              break;
97            case JdwpConstants.CommandSet.VirtualMachine.SUSPEND:            case JdwpConstants.CommandSet.VirtualMachine.SUSPEND:
# Line 101  public class VirtualMachineCommandSet Line 101  public class VirtualMachineCommandSet
101              executeResume(bb, os);              executeResume(bb, os);
102              break;              break;
103            case JdwpConstants.CommandSet.VirtualMachine.EXIT:            case JdwpConstants.CommandSet.VirtualMachine.EXIT:
104              keepRunning = false;              shutdown = true;
105              executeExit(bb, os);              executeExit(bb, os);
106              break;              break;
107            case JdwpConstants.CommandSet.VirtualMachine.CREATE_STRING:            case JdwpConstants.CommandSet.VirtualMachine.CREATE_STRING:
# Line 145  public class VirtualMachineCommandSet Line 145  public class VirtualMachineCommandSet
145          // So if we throw an IOException we're in serious trouble          // So if we throw an IOException we're in serious trouble
146          throw new JdwpInternalErrorException(ex);          throw new JdwpInternalErrorException(ex);
147        }        }
148      return keepRunning;  
149        return shutdown;
150    }    }
151    
152    private void executeVersion(ByteBuffer bb, DataOutputStream os)    private void executeVersion(ByteBuffer bb, DataOutputStream os)
# Line 164  public class VirtualMachineCommandSet Line 165  public class VirtualMachineCommandSet
165      String vmVersion = props.getProperty("java.version");      String vmVersion = props.getProperty("java.version");
166      String vmName = props.getProperty("java.vm.name");      String vmName = props.getProperty("java.vm.name");
167      JdwpString.writeString(os, description);      JdwpString.writeString(os, description);
168      os.write(jdwpMajor);      os.writeInt(jdwpMajor);
169      os.write(jdwpMinor);      os.writeInt(jdwpMinor);
170      JdwpString.writeString(os, vmName);      JdwpString.writeString(os, vmName);
171      JdwpString.writeString(os, vmVersion);      JdwpString.writeString(os, vmVersion);
172    }    }

Legend:
Removed from v.1.1.2.3  
changed lines
  Added in v.1.1.2.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26