Package gnu.classpath.jdwp.id

Examples of gnu.classpath.jdwp.id.ObjectId


            else if (obj instanceof Class)
              os.writeByte(JdwpConstants.Tag.CLASS_OBJECT);
            else
              os.writeByte(JdwpConstants.Tag.OBJECT);
          }
        ObjectId oid = VMIdManager.getDefault().getObjectId(obj);
        oid.write(os);
      }
  }
View Full Code Here


          }
      }
    else
      {
        // Field is an object
        ObjectId oid = VMIdManager.getDefault().readObjectId(bb);
        return oid.getObject();
      }
  }
View Full Code Here

      case JdwpConstants.Tag.OBJECT:
      case JdwpConstants.Tag.THREAD_GROUP:
      case JdwpConstants.Tag.CLASS_LOADER:
      case JdwpConstants.Tag.CLASS_OBJECT:
        // All these cases are ObjectIds
        ObjectId oid = VMIdManager.getDefault().readObjectId(bb);
        return oid.getObject();
      default:
        throw new NotImplementedException("Tag " + tag
                                          + " is not implemented.");
      }
  }
View Full Code Here

    Class arrayType = refId.getType();
    Class componentType = arrayType.getComponentType();

    int length = bb.getInt();
    Object newArray = Array.newInstance(componentType, length);
    ObjectId oid = idMan.getObjectId(newArray);

    // Since this array isn't referenced anywhere we'll disable garbage
    // collection on it so it's still around when the debugger gets back to it.
    oid.disableCollection();
    oid.writeTagged(os);
  }
View Full Code Here

      throws JdwpException, IOException
  {
    ThreadId tid = (ThreadId) idMan.readObjectId(bb);
    Thread thread = tid.getThread();
    ThreadGroup group = thread.getThreadGroup();
    ObjectId groupId = idMan.getObjectId(group);
    groupId.write(os);
  }
View Full Code Here

  private void executeStop(ByteBuffer bb, DataOutputStream os)
      throws JdwpException, IOException
  {
    ThreadId tid = (ThreadId) idMan.readObjectId(bb);
    Thread thread = tid.getThread();
    ObjectId exception = idMan.readObjectId(bb);
    Throwable throwable = (Throwable) exception.getObject();
    thread.stop (throwable);
  }
View Full Code Here

    int numValues = bb.getInt();

    for (int i = 0; i < numValues; i++)
      {
        ObjectId fieldId = idMan.readObjectId(bb);
        Field field = (Field) (fieldId.getObject());
        Object value = Value.getUntaggedObj(bb, field.getType());
        try
          {
            field.setAccessible(true); // Might be a private field
            field.set(null, value);
View Full Code Here

  {
    MethodResult mr = invokeMethod(bb);

    Object value = mr.getReturnedValue();
    Exception exception = mr.getThrownException();
    ObjectId eId = idMan.getObjectId(exception);

    Value.writeTaggedValue(os, value);
    eId.writeTagged(os);
  }
View Full Code Here

      throws JdwpException, IOException
  {
    MethodResult mr = invokeMethod(bb);

    Object obj = mr.getReturnedValue();
    ObjectId oId = idMan.getObjectId(obj);
    Exception exception = mr.getThrownException();
    ObjectId eId = idMan.getObjectId(exception);

    oId.writeTagged(os);
    eId.writeTagged(os);
  }
View Full Code Here

      IOException
  {
    ReferenceTypeId refId = idMan.readReferenceTypeId(bb);
    Class clazz = refId.getType();

    ObjectId tId = idMan.readObjectId(bb);
    Thread thread = (Thread) tId.getObject();

    ObjectId mId = idMan.readObjectId(bb);
    Method method = (Method) mId.getObject();

    int args = bb.getInt();
    Object[] values = new Object[args];

    for (int i = 0; i < args; i++)
View Full Code Here

TOP

Related Classes of gnu.classpath.jdwp.id.ObjectId

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.