Examples of JdwpReplyPacket


Examples of org.eclipse.jdi.internal.jdwp.JdwpReplyPacket

          "event kind", EventImpl.eventKindMap(), outData); // Always 01 for Step event. //$NON-NLS-1$
      writeByte(suspendPolicyJDWP(), "suspend policy", outData); //$NON-NLS-1$
      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) {
      defaultIOExceptionHandler(e);
View Full Code Here

Examples of org.eclipse.jdi.internal.jdwp.JdwpReplyPacket

      DataOutputStream outData = new DataOutputStream(outBytes);
      writeByte(eventKind(),
          "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());

      virtualMachineImpl().eventRequestManagerImpl()
          .removeRequestIDMapping(this);
      fRequestID = null;
    } catch (IOException e) {
View Full Code Here

Examples of org.eclipse.jdi.internal.jdwp.JdwpReplyPacket

          suspendPolicyJDWP(),
          "suspend policy", EventRequestImpl.suspendPolicyMap(), outData); //$NON-NLS-1$
      writeInt(modifierCount(), "modifiers", outData); //$NON-NLS-1$
      writeModifiers(outData);

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

Examples of org.eclipse.jdi.internal.jdwp.JdwpReplyPacket

   * Clear all breakpoints (used by EventRequestManager).
   */
  public static void clearAllBreakpoints(MirrorImpl mirror) {
    mirror.initJdwpRequest();
    try {
      JdwpReplyPacket replyPacket = mirror
          .requestVM(JdwpCommandPacket.ER_CLEAR_ALL_BREAKPOINTS);
      mirror.defaultReplyErrorHandler(replyPacket.errorCode());
    } finally {
      mirror.handledJdwpRequest();
    }
  }
View Full Code Here

Examples of org.eclipse.jdi.internal.jdwp.JdwpReplyPacket

    try {
      ByteArrayOutputStream outBytes = new ByteArrayOutputStream();
      DataOutputStream outData = new DataOutputStream(outBytes);
      writeWithReferenceType(this, outData);

      JdwpReplyPacket replyPacket = requestVM(
          JdwpCommandPacket.M_LINE_TABLE, outBytes);
      switch (replyPacket.errorCode()) {
      case JdwpReplyPacket.ABSENT_INFORMATION:
        throw new AbsentInformationException(
            JDIMessages.MethodImpl_No_line_number_information_available_2);
      case JdwpReplyPacket.NATIVE_METHOD:
        throw new AbsentInformationException(
            JDIMessages.MethodImpl_No_line_number_information_available_2);
      }
      defaultReplyErrorHandler(replyPacket.errorCode());

      DataInputStream replyData = replyPacket.dataInStream();
      fLowestValidCodeIndex = readLong("lowest index", replyData); //$NON-NLS-1$
      fHighestValidCodeIndex = readLong("highest index", replyData); //$NON-NLS-1$
      int nrOfElements = readInt("elements", replyData); //$NON-NLS-1$
      fCodeIndexToLine = new HashMap<Long, Integer>();
      fLineToCodeIndexes = new HashMap<Integer, List<Long>>();
View Full Code Here

Examples of org.eclipse.jdi.internal.jdwp.JdwpReplyPacket

    try {
      ByteArrayOutputStream outBytes = new ByteArrayOutputStream();
      DataOutputStream outData = new DataOutputStream(outBytes);
      writeWithReferenceType(this, outData);

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

      DataInputStream replyData = replyPacket.dataInStream();
      int length = readInt("length", replyData); //$NON-NLS-1$
      fByteCodes = readByteArray(length, "bytecodes", replyData); //$NON-NLS-1$
      return fByteCodes;
    } catch (IOException e) {
      fByteCodes = null;
View Full Code Here

Examples of org.eclipse.jdi.internal.jdwp.JdwpReplyPacket

      boolean withGenericSignature = virtualMachineImpl()
          .isJdwpVersionGreaterOrEqual(1, 5);
      int jdwpCommand = withGenericSignature ? JdwpCommandPacket.M_VARIABLE_TABLE_WITH_GENERIC
          : JdwpCommandPacket.M_VARIABLE_TABLE;
      JdwpReplyPacket replyPacket = requestVM(jdwpCommand, outBytes);
      switch (replyPacket.errorCode()) {
      case JdwpReplyPacket.ABSENT_INFORMATION:
        return inferArguments();
      }

      defaultReplyErrorHandler(replyPacket.errorCode());

      DataInputStream replyData = replyPacket.dataInStream();
      fArgumentSlotsCount = readInt("arg count", replyData); //$NON-NLS-1$
      int nrOfElements = readInt("elements", replyData); //$NON-NLS-1$
      List<LocalVariable> variables = new ArrayList<LocalVariable>(nrOfElements);
      for (int i = 0; i < nrOfElements; i++) {
        long codeIndex = readLong("code index", replyData); //$NON-NLS-1$
View Full Code Here

Examples of org.eclipse.jdi.internal.jdwp.JdwpReplyPacket

   */
  public int length() {
    if (fLength == -1) {
      initJdwpRequest();
      try {
        JdwpReplyPacket replyPacket = requestVM(
            JdwpCommandPacket.AR_LENGTH, this);
        defaultReplyErrorHandler(replyPacket.errorCode());
        DataInputStream replyData = replyPacket.dataInStream();
        fLength = readInt("length", replyData); //$NON-NLS-1$
      } catch (IOException e) {
        defaultIOExceptionHandler(e);
        return 0;
      } finally {
View Full Code Here

Examples of org.eclipse.jdi.internal.jdwp.JdwpReplyPacket

        } else {
          ValueImpl.writeNull(this, outData);
        }
      }

      JdwpReplyPacket replyPacket = requestVM(
          JdwpCommandPacket.AR_SET_VALUES, outBytes);
      switch (replyPacket.errorCode()) {
      case JdwpReplyPacket.TYPE_MISMATCH:
        throw new InvalidTypeException();
      case JdwpReplyPacket.INVALID_CLASS:
        throw new ClassNotLoadedException(type().name());
      }
      defaultReplyErrorHandler(replyPacket.errorCode());
    } catch (IOException e) {
      defaultIOExceptionHandler(e);
    } finally {
      handledJdwpRequest();
    }
View Full Code Here

Examples of org.eclipse.jdi.internal.jdwp.JdwpReplyPacket

      return fGenericSignature;
    }
    if (virtualMachineImpl().isJdwpVersionGreaterOrEqual(1, 5)) {
      initJdwpRequest();
      try {
        JdwpReplyPacket replyPacket = requestVM(
            JdwpCommandPacket.RT_SIGNATURE_WITH_GENERIC, this);
        defaultReplyErrorHandler(replyPacket.errorCode());
        DataInputStream replyData = replyPacket.dataInStream();
        setSignature(readString("signature", replyData)); //$NON-NLS-1$
        fGenericSignature = readString("generic signature", replyData); //$NON-NLS-1$
        if (fGenericSignature.length() == 0) {
          fGenericSignature = 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.