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

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

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

revision 1.3 by mark, Wed Aug 24 22:57:07 2005 UTC revision 1.4 by keiths, Thu Aug 25 22:09:49 2005 UTC
# Line 40  exception statement from your version. * Line 40  exception statement from your version. *
40  package gnu.classpath.jdwp.processor;  package gnu.classpath.jdwp.processor;
41    
42  import gnu.classpath.jdwp.VMFrame;  import gnu.classpath.jdwp.VMFrame;
 import gnu.classpath.jdwp.IVirtualMachine;  
 import gnu.classpath.jdwp.Jdwp;  
43  import gnu.classpath.jdwp.JdwpConstants;  import gnu.classpath.jdwp.JdwpConstants;
44  import gnu.classpath.jdwp.exception.JdwpException;  import gnu.classpath.jdwp.exception.JdwpException;
45  import gnu.classpath.jdwp.exception.JdwpInternalErrorException;  import gnu.classpath.jdwp.exception.JdwpInternalErrorException;
46  import gnu.classpath.jdwp.exception.NotImplementedException;  import gnu.classpath.jdwp.exception.NotImplementedException;
 import gnu.classpath.jdwp.id.IdManager;  
47  import gnu.classpath.jdwp.id.ObjectId;  import gnu.classpath.jdwp.id.ObjectId;
48  import gnu.classpath.jdwp.util.Value;  import gnu.classpath.jdwp.util.Value;
49    
# Line 59  import java.nio.ByteBuffer; Line 56  import java.nio.ByteBuffer;
56   *   *
57   * @author Aaron Luchko <aluchko@redhat.com>   * @author Aaron Luchko <aluchko@redhat.com>
58   */   */
59  public class StackFrameCommandSet implements CommandSet  public class StackFrameCommandSet
60      extends CommandSet
61  {  {
   // Our hook into the jvm  
   private final IVirtualMachine vm = Jdwp.getIVirtualMachine();  
   
   // Manages all the different ids that are assigned by jdwp  
   private final IdManager idMan = Jdwp.getIdManager();  
   
62    public boolean runCommand(ByteBuffer bb, DataOutputStream os, byte command)    public boolean runCommand(ByteBuffer bb, DataOutputStream os, byte command)
63        throws JdwpException        throws JdwpException
64    {    {
# Line 104  public class StackFrameCommandSet implem Line 96  public class StackFrameCommandSet implem
96    private void executeGetValues(ByteBuffer bb, DataOutputStream os)    private void executeGetValues(ByteBuffer bb, DataOutputStream os)
97        throws JdwpException, IOException        throws JdwpException, IOException
98    {    {
99      ObjectId tId = idMan.readId(bb);      ObjectId tId = idMan.readObjectId(bb);
100      Thread thread = (Thread) tId.getObject();      Thread thread = (Thread) tId.getObject();
101    
102      // Although Frames look like other ids they are not. First they are not      // Although Frames look like other ids they are not. First they are not
# Line 128  public class StackFrameCommandSet implem Line 120  public class StackFrameCommandSet implem
120    private void executeSetValues(ByteBuffer bb, DataOutputStream os)    private void executeSetValues(ByteBuffer bb, DataOutputStream os)
121        throws JdwpException, IOException        throws JdwpException, IOException
122    {    {
123      ObjectId tId = idMan.readId(bb);      ObjectId tId = idMan.readObjectId(bb);
124      Thread thread = (Thread) tId.getObject();      Thread thread = (Thread) tId.getObject();
125    
126      VMFrame frame = vm.getVMFrame(thread, bb);      VMFrame frame = vm.getVMFrame(thread, bb);
# Line 145  public class StackFrameCommandSet implem Line 137  public class StackFrameCommandSet implem
137    private void executeThisObject(ByteBuffer bb, DataOutputStream os)    private void executeThisObject(ByteBuffer bb, DataOutputStream os)
138        throws JdwpException, IOException        throws JdwpException, IOException
139    {    {
140      ObjectId tId = idMan.readId(bb);      ObjectId tId = idMan.readObjectId(bb);
141      Thread thread = (Thread) tId.getObject();      Thread thread = (Thread) tId.getObject();
142    
143      VMFrame frame = vm.getVMFrame(thread, bb);      VMFrame frame = vm.getVMFrame(thread, bb);

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

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