Package org.eclipse.jdi.internal.jdwp

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


      case JdwpReplyPacket.TYPE_MISMATCH:
        throw new InvalidTypeException();
      case JdwpReplyPacket.INVALID_CLASS:
        throw new ClassNotLoadedException(referenceType().name());
      }
      defaultReplyErrorHandler(replyPacket.errorCode());
    } catch (IOException e) {
      defaultIOExceptionHandler(e);
    } finally {
      handledJdwpRequest();
    }
View Full Code Here


          writeByte(var.tag(), "tag", JdwpID.tagMap(), outData); //$NON-NLS-1$
        }
      }
      JdwpReplyPacket replyPacket = requestVM(
          JdwpCommandPacket.SF_GET_VALUES, outBytes);
      defaultReplyErrorHandler(replyPacket.errorCode());

      DataInputStream replyData = replyPacket.dataInStream();
      int nrOfElements = readInt("elements", replyData); //$NON-NLS-1$
      if (nrOfElements != sizeNotThis)
        throw new InternalError(
View Full Code Here

        ValueImpl.writeNullWithTag(this, outData);
      }

      JdwpReplyPacket replyPacket = requestVM(
          JdwpCommandPacket.SF_SET_VALUES, outBytes);
      switch (replyPacket.errorCode()) {
      case JdwpReplyPacket.INVALID_CLASS:
        throw new ClassNotLoadedException(var.typeName());
      }
      defaultReplyErrorHandler(replyPacket.errorCode());
    } catch (IOException e) {
View Full Code Here

          JdwpCommandPacket.SF_SET_VALUES, outBytes);
      switch (replyPacket.errorCode()) {
      case JdwpReplyPacket.INVALID_CLASS:
        throw new ClassNotLoadedException(var.typeName());
      }
      defaultReplyErrorHandler(replyPacket.errorCode());
    } catch (IOException e) {
      defaultIOExceptionHandler(e);
    } finally {
      handledJdwpRequest();
    }
View Full Code Here

      DataOutputStream outData = new DataOutputStream(outBytes);
      writeWithThread(this, outData);

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

      DataInputStream replyData = replyPacket.dataInStream();
      ObjectReference result = ObjectReferenceImpl.readObjectRefWithTag(
          this, replyData);
      return result;
View Full Code Here

    }
    initJdwpRequest();
    try {
      JdwpReplyPacket replyPacket = requestVM(JdwpCommandPacket.TGR_NAME,
          this);
      defaultReplyErrorHandler(replyPacket.errorCode());
      DataInputStream replyData = replyPacket.dataInStream();
      fName = readString("name", replyData); //$NON-NLS-1$
      return fName;
    } catch (IOException e) {
      defaultIOExceptionHandler(e);
View Full Code Here

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

    // Note that this information should not be cached.
    initJdwpRequest();
    try {
      JdwpReplyPacket replyPacket = requestVM(
          JdwpCommandPacket.TGR_CHILDREN, this);
      defaultReplyErrorHandler(replyPacket.errorCode());
      DataInputStream replyData = replyPacket.dataInStream();
      ChildrenInfo result = new ChildrenInfo();
      int nrThreads = readInt("nr threads", replyData); //$NON-NLS-1$
      result.childThreads = new ArrayList<ThreadReference>(nrThreads);
      for (int i = 0; i < nrThreads; i++)
View Full Code Here

      writeInt(modifierCount(), "modifiers", outData); //$NON-NLS-1$
      writeModifiers(outData);

      JdwpReplyPacket replyPacket = requestVM(
          JdwpCommandPacket.HCR_REENTER_ON_EXIT, outBytes);
      defaultReplyErrorHandler(replyPacket.errorCode());
      DataInputStream replyData = replyPacket.dataInStream();
      fRequestID = RequestID.read(this, replyData);
      virtualMachineImpl().eventRequestManagerImpl().addRequestIDMapping(
          this);
    } catch (IOException e) {
View Full Code Here

          "event kind", EventImpl.eventKindMap(), outData); //$NON-NLS-1$
      fRequestID.write(this, outData);

      JdwpReplyPacket replyPacket = requestVM(JdwpCommandPacket.ER_CLEAR,
          outBytes);
      switch (replyPacket.errorCode()) {
      case JdwpReplyPacket.NOT_FOUND:
        throw new InvalidRequestStateException();
      }
      defaultReplyErrorHandler(replyPacket.errorCode());
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.