Examples of dataInStream()


Examples of org.eclipse.jdi.internal.jdwp.JdwpCommandPacket.dataInStream()

      EventSetImpl set;
      do {
        JdwpCommandPacket packet = getCommandVM(
            JdwpCommandPacket.E_COMPOSITE, timeout);
        initJdwpEventSet(packet);
        set = EventSetImpl.read(this, packet.dataInStream());
        handledJdwpEventSet();
      } while (set.isEmpty());
      return set;
    } catch (TimeoutException e) {
      // Timeout in getCommand, JDI spec says return null.
View Full Code Here

Examples of org.eclipse.jdi.internal.jdwp.JdwpReplyPacket.dataInStream()

        throw new IncompatibleThreadStateException();
      case JdwpReplyPacket.THREAD_NOT_SUSPENDED:
        throw new IncompatibleThreadStateException();
      }
      defaultReplyErrorHandler(replyPacket.errorCode());
      DataInputStream replyData = replyPacket.dataInStream();
      ValueImpl value = ValueImpl.readWithTag(this, replyData);
      ObjectReferenceImpl exception = ObjectReferenceImpl
          .readObjectRefWithTag(this, replyData);
      if (exception != null)
        throw new InvocationException(exception);
View Full Code Here

Examples of org.eclipse.jdi.internal.jdwp.JdwpReplyPacket.dataInStream()

        throw new IncompatibleThreadStateException();
      case JdwpReplyPacket.THREAD_NOT_SUSPENDED:
        throw new IncompatibleThreadStateException();
      }
      defaultReplyErrorHandler(replyPacket.errorCode());
      DataInputStream replyData = replyPacket.dataInStream();
      ObjectReferenceImpl object = ObjectReferenceImpl
          .readObjectRefWithTag(this, replyData);
      ObjectReferenceImpl exception = ObjectReferenceImpl
          .readObjectRefWithTag(this, replyData);
      if (exception != null)
View Full Code Here

Examples of org.eclipse.jdi.internal.jdwp.JdwpReplyPacket.dataInStream()

    initJdwpRequest();
    try {
      JdwpReplyPacket replyPacket = requestVM(
          JdwpCommandPacket.CT_SUPERCLASS, this);
      defaultReplyErrorHandler(replyPacket.errorCode());
      DataInputStream replyData = replyPacket.dataInStream();
      fSuperclass = ClassTypeImpl.read(this, replyData);
      return fSuperclass;
    } catch (IOException e) {
      defaultIOExceptionHandler(e);
      return null;
View Full Code Here

Examples of org.eclipse.jdi.internal.jdwp.JdwpReplyPacket.dataInStream()

      JdwpReplyPacket replyPacket = requestVM(
          JdwpCommandPacket.AT_NEW_INSTANCE, outBytes);
      defaultReplyErrorHandler(replyPacket.errorCode());

      DataInputStream replyData = replyPacket.dataInStream();
      ArrayReferenceImpl arrayRef = (ArrayReferenceImpl) ObjectReferenceImpl
          .readObjectRefWithTag(this, replyData);
      return arrayRef;
    } catch (IOException e) {
      defaultIOExceptionHandler(e);
View Full Code Here

Examples of org.eclipse.jdi.internal.jdwp.JdwpReplyPacket.dataInStream()

          .isJdwpVersionGreaterOrEqual(1, 5);
      int jdwpCommand = withGenericSignature ? JdwpCommandPacket.VM_ALL_CLASSES_WITH_GENERIC
          : JdwpCommandPacket.VM_ALL_CLASSES;
      JdwpReplyPacket replyPacket = requestVM(jdwpCommand);
      defaultReplyErrorHandler(replyPacket.errorCode());
      DataInputStream replyData = replyPacket.dataInStream();
      int nrOfElements = readInt("elements", replyData); //$NON-NLS-1$
      List<ReferenceType> elements = new ArrayList<ReferenceType>(nrOfElements);
      for (int i = 0; i < nrOfElements; i++) {
        ReferenceTypeImpl elt = ReferenceTypeImpl
            .readWithTypeTagAndSignature(this,
View Full Code Here

Examples of org.eclipse.jdi.internal.jdwp.JdwpReplyPacket.dataInStream()

    // Note that this information should not be cached.
    initJdwpRequest();
    try {
      JdwpReplyPacket replyPacket = requestVM(JdwpCommandPacket.VM_ALL_THREADS);
      defaultReplyErrorHandler(replyPacket.errorCode());
      DataInputStream replyData = replyPacket.dataInStream();
      int nrOfElements = readInt("elements", replyData); //$NON-NLS-1$
      List<ThreadReference> elements = new ArrayList<ThreadReference>(nrOfElements);
      for (int i = 0; i < nrOfElements; i++) {
        ThreadReferenceImpl elt = ThreadReferenceImpl.read(this,
            replyData);
View Full Code Here

Examples of org.eclipse.jdi.internal.jdwp.JdwpReplyPacket.dataInStream()

    initJdwpRequest();
    try {
      JdwpReplyPacket replyPacket = requestVM(command);
      defaultReplyErrorHandler(replyPacket.errorCode());
      DataInputStream replyData = replyPacket.dataInStream();

      fCanWatchFieldModification = readBoolean(
          "watch field modification", replyData); //$NON-NLS-1$
      fCanWatchFieldAccess = readBoolean("watch field access", replyData); //$NON-NLS-1$
      fCanGetBytecodes = readBoolean("get bytecodes", replyData); //$NON-NLS-1$
View Full Code Here

Examples of org.eclipse.jdi.internal.jdwp.JdwpReplyPacket.dataInStream()

      writeString(signature, "signature", outData); //$NON-NLS-1$

      JdwpReplyPacket replyPacket = requestVM(
          JdwpCommandPacket.VM_CLASSES_BY_SIGNATURE, outBytes);
      defaultReplyErrorHandler(replyPacket.errorCode());
      DataInputStream replyData = replyPacket.dataInStream();
      int nrOfElements = readInt("elements", replyData); //$NON-NLS-1$
      List<ReferenceType> elements = new ArrayList<ReferenceType>(nrOfElements);
      for (int i = 0; i < nrOfElements; i++) {
        ReferenceTypeImpl elt = ReferenceTypeImpl.readWithTypeTag(this,
            replyData);
View Full Code Here

Examples of org.eclipse.jdi.internal.jdwp.JdwpReplyPacket.dataInStream()

      JdwpReplyPacket replyPacket = requestVM(
          JdwpCommandPacket.VM_CREATE_STRING, outBytes);
      defaultReplyErrorHandler(replyPacket.errorCode());

      DataInputStream replyData = replyPacket.dataInStream();
      StringReference result = StringReferenceImpl.read(this, replyData);
      return result;
    } catch (IOException e) {
      defaultIOExceptionHandler(e);
      return null;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.