Package org.eclipse.jdi.internal.jdwp

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


  public void resume() {
    initJdwpRequest();
    try {
      JdwpReplyPacket replyPacket = requestVM(
          JdwpCommandPacket.TR_RESUME, this);
      switch (replyPacket.errorCode()) {
      case JdwpReplyPacket.INVALID_THREAD:
        throw new ObjectCollectedException();
      }
      defaultReplyErrorHandler(replyPacket.errorCode());
      resetEventFlags();
View Full Code Here


          JdwpCommandPacket.TR_RESUME, this);
      switch (replyPacket.errorCode()) {
      case JdwpReplyPacket.INVALID_THREAD:
        throw new ObjectCollectedException();
      }
      defaultReplyErrorHandler(replyPacket.errorCode());
      resetEventFlags();
    } finally {
      handledJdwpRequest();
    }
  }
View Full Code Here

    // Note that this information should not be cached.
    initJdwpRequest();
    try {
      JdwpReplyPacket replyPacket = requestVM(
          JdwpCommandPacket.TR_STATUS, this);
      switch (replyPacket.errorCode()) {
      case JdwpReplyPacket.ABSENT_INFORMATION:
        return THREAD_STATUS_UNKNOWN;
      case JdwpReplyPacket.INVALID_THREAD:
        return THREAD_STATUS_NOT_STARTED;
      }
View Full Code Here

      case JdwpReplyPacket.ABSENT_INFORMATION:
        return THREAD_STATUS_UNKNOWN;
      case JdwpReplyPacket.INVALID_THREAD:
        return THREAD_STATUS_NOT_STARTED;
      }
      defaultReplyErrorHandler(replyPacket.errorCode());
      DataInputStream replyData = replyPacket.dataInStream();
      int threadStatus = readInt(
          "thread status", threadStatusMap(), replyData); //$NON-NLS-1$
      readInt("suspend status", suspendStatusStrings(), replyData); //$NON-NLS-1$
      switch (threadStatus) {
View Full Code Here

      write(this, outData);
      throwableImpl.write(this, outData);

      JdwpReplyPacket replyPacket = requestVM(JdwpCommandPacket.TR_STOP,
          outBytes);
      switch (replyPacket.errorCode()) {
      case JdwpReplyPacket.INVALID_THREAD:
        throw new ObjectCollectedException();
      case JdwpReplyPacket.INVALID_CLASS:
        throw new InvalidTypeException(
            JDIMessages.ThreadReferenceImpl_Stop_argument_not_an_instance_of_java_lang_Throwable_in_the_target_VM_7);
View Full Code Here

        throw new ObjectCollectedException();
      case JdwpReplyPacket.INVALID_CLASS:
        throw new InvalidTypeException(
            JDIMessages.ThreadReferenceImpl_Stop_argument_not_an_instance_of_java_lang_Throwable_in_the_target_VM_7);
      }
      defaultReplyErrorHandler(replyPacket.errorCode());
    } catch (IOException e) {
      defaultIOExceptionHandler(e);
    } finally {
      handledJdwpRequest();
    }
View Full Code Here

  public void suspend() {
    initJdwpRequest();
    try {
      JdwpReplyPacket replyPacket = requestVM(
          JdwpCommandPacket.TR_SUSPEND, this);
      switch (replyPacket.errorCode()) {
      case JdwpReplyPacket.INVALID_THREAD:
        throw new ObjectCollectedException();
      }
      defaultReplyErrorHandler(replyPacket.errorCode());
    } finally {
View Full Code Here

          JdwpCommandPacket.TR_SUSPEND, this);
      switch (replyPacket.errorCode()) {
      case JdwpReplyPacket.INVALID_THREAD:
        throw new ObjectCollectedException();
      }
      defaultReplyErrorHandler(replyPacket.errorCode());
    } finally {
      handledJdwpRequest();
    }
  }
View Full Code Here

    // Note that this information should not be cached.
    initJdwpRequest();
    try {
      JdwpReplyPacket replyPacket = requestVM(
          JdwpCommandPacket.TR_SUSPEND_COUNT, this);
      defaultReplyErrorHandler(replyPacket.errorCode());
      DataInputStream replyData = replyPacket.dataInStream();
      int result = readInt("suspend count", replyData); //$NON-NLS-1$
      return result;
    } catch (IOException e) {
      defaultIOExceptionHandler(e);
View Full Code Here

    }
    initJdwpRequest();
    try {
      JdwpReplyPacket replyPacket = requestVM(
          JdwpCommandPacket.TR_THREAD_GROUP, this);
      switch (replyPacket.errorCode()) {
      case JdwpReplyPacket.INVALID_THREAD:
        throw new ObjectCollectedException();
      }
      defaultReplyErrorHandler(replyPacket.errorCode());
      DataInputStream replyData = replyPacket.dataInStream();
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.