Package org.eclipse.jdi.internal.jdwp

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


          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


      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);
View Full Code Here

  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

      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(
View Full Code Here

            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$
View Full Code Here

      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;
View Full Code Here

      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());
View Full Code Here

      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);
View Full Code Here

    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;
View Full Code Here

        }
      }

      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());
      }
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.