Package org.eclipse.jdi.internal.jdwp

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


      writeInt(start, "start", outData); //$NON-NLS-1$
      writeInt(length, "length", outData); //$NON-NLS-1$

      JdwpReplyPacket replyPacket = requestVM(
          JdwpCommandPacket.TR_FRAMES, outBytes);
      switch (replyPacket.errorCode()) {
      case JdwpReplyPacket.INVALID_THREAD:
        throw new ObjectCollectedException();
      case JdwpReplyPacket.THREAD_NOT_SUSPENDED:
        throw new IncompatibleThreadStateException(
            JDIMessages.ThreadReferenceImpl_Thread_was_not_suspended_1);
View Full Code Here


            JDIMessages.ThreadReferenceImpl_Thread_was_not_suspended_1);
      case JdwpReplyPacket.INVALID_INDEX:
        throw new IndexOutOfBoundsException(
            JDIMessages.ThreadReferenceImpl_Invalid_index_of_stack_frames_given_4);
      }
      defaultReplyErrorHandler(replyPacket.errorCode());

      DataInputStream replyData = replyPacket.dataInStream();
      int nrOfElements = readInt("elements", replyData); //$NON-NLS-1$
      List<StackFrame> frames = new ArrayList<StackFrame>(nrOfElements);
      for (int i = 0; i < nrOfElements; i++) {
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.INVALID_THREAD:
        throw new ObjectCollectedException();
      }
      defaultReplyErrorHandler(replyPacket.errorCode());
      DataInputStream replyData = replyPacket.dataInStream();
View Full Code Here

          JdwpCommandPacket.TR_STATUS, this);
      switch (replyPacket.errorCode()) {
      case JdwpReplyPacket.INVALID_THREAD:
        throw new ObjectCollectedException();
      }
      defaultReplyErrorHandler(replyPacket.errorCode());
      DataInputStream replyData = replyPacket.dataInStream();
      // remove the thread status reply
      readInt("thread status", threadStatusMap(), replyData); //$NON-NLS-1$
      int suspendStatus = readInt(
          "suspend status", suspendStatusStrings(), replyData); //$NON-NLS-1$
View Full Code Here

  public String name() {
    initJdwpRequest();
    try {
      JdwpReplyPacket replyPacket = requestVM(JdwpCommandPacket.TR_NAME,
          this);
      switch (replyPacket.errorCode()) {
      case JdwpReplyPacket.INVALID_THREAD:
        throw new ObjectCollectedException();
      }
      defaultReplyErrorHandler(replyPacket.errorCode());
      DataInputStream replyData = replyPacket.dataInStream();
View Full Code Here

          this);
      switch (replyPacket.errorCode()) {
      case JdwpReplyPacket.INVALID_THREAD:
        throw new ObjectCollectedException();
      }
      defaultReplyErrorHandler(replyPacket.errorCode());
      DataInputStream replyData = replyPacket.dataInStream();
      return readString("name", replyData); //$NON-NLS-1$
    } catch (IOException e) {
      defaultIOExceptionHandler(e);
      return null;
View Full Code Here

    // Note that this information should not be cached.
    initJdwpRequest();
    try {
      JdwpReplyPacket replyPacket = requestVM(
          JdwpCommandPacket.TR_OWNED_MONITORS, this);
      switch (replyPacket.errorCode()) {
      case JdwpReplyPacket.INVALID_THREAD:
        throw new ObjectCollectedException();
      case JdwpReplyPacket.THREAD_NOT_SUSPENDED:
        throw new IncompatibleThreadStateException(
            JDIMessages.ThreadReferenceImpl_Thread_was_not_suspended_5);
View Full Code Here

        throw new ObjectCollectedException();
      case JdwpReplyPacket.THREAD_NOT_SUSPENDED:
        throw new IncompatibleThreadStateException(
            JDIMessages.ThreadReferenceImpl_Thread_was_not_suspended_5);
      }
      defaultReplyErrorHandler(replyPacket.errorCode());
      DataInputStream replyData = replyPacket.dataInStream();

      int nrOfMonitors = readInt("nr of monitors", replyData); //$NON-NLS-1$
      List<ObjectReference> result = new ArrayList<ObjectReference>(nrOfMonitors);
      for (int i = 0; i < nrOfMonitors; i++) {
View Full Code Here

      throws IncompatibleThreadStateException {
    initJdwpRequest();
    try {
      JdwpReplyPacket replyPacket = requestVM(
          JdwpCommandPacket.TR_OWNED_MONITOR_STACK_DEPTH, this);
      switch (replyPacket.errorCode()) {
      case JdwpReplyPacket.INVALID_THREAD:
      case JdwpReplyPacket.INVALID_OBJECT:
        throw new ObjectCollectedException(
            JDIMessages.ThreadReferenceImpl_thread_object_invalid);
      case JdwpReplyPacket.THREAD_NOT_SUSPENDED:
View Full Code Here

        throw new UnsupportedOperationException(
            JDIMessages.ThreadReferenceImpl_no_force_early_return_on_threads);
      case JdwpReplyPacket.VM_DEAD:
        throw new VMDisconnectedException(JDIMessages.vm_dead);
      }
      defaultReplyErrorHandler(replyPacket.errorCode());
      DataInputStream replyData = replyPacket.dataInStream();

      int owned = readInt("owned monitors", replyData); //$NON-NLS-1$
      List<com.sun.jdi.MonitorInfo> result = new ArrayList<com.sun.jdi.MonitorInfo>(owned);
      ObjectReference monitor = 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.