Package com.sun.jdi

Examples of com.sun.jdi.VirtualMachine


  /**
   * @see IJavaDebugTarget#setRequestTimeout(int)
   */
  public void setRequestTimeout(int timeout) {
    if (supportsRequestTimeout()) {
      VirtualMachine vm = getVM();
      if (vm != null) {
        ((org.eclipse.jdi.VirtualMachine) vm)
            .setRequestTimeout(timeout);
      }
    }
View Full Code Here


  /**
   * @see IJavaDebugTarget#getRequestTimeout()
   */
  public int getRequestTimeout() {
    if (supportsRequestTimeout()) {
      VirtualMachine vm = getVM();
      if (vm != null) {
        return ((org.eclipse.jdi.VirtualMachine) vm)
            .getRequestTimeout();
      }
    }
View Full Code Here

  @Override
  public void execute() throws CoreException {
    IJavaType type;
    if (fIsPrimitiveType) {
      JDIDebugTarget debugTarget = (JDIDebugTarget) getVM();
      VirtualMachine vm = debugTarget.getVM();
      if (vm == null) {
        debugTarget
            .requestFailed(
                InstructionsEvaluationMessages.LocalVariableCreation_Execution_failed___VM_disconnected__1,
                null);
View Full Code Here

          || thread.isTerminated() || thread.isInvokingMethod()) {
        return false;
      }
      boolean j9Support = false;
      boolean jdkSupport = target.canPopFrames();
      VirtualMachine vm = getVM();
      if (vm == null) {
        return false;
      }
      try {
        j9Support = (thread.getUnderlyingThread() instanceof org.eclipse.jdi.hcr.ThreadReference)
View Full Code Here

   * Adds all of the pre-existing threads to this debug target.
   */
  protected void initializeState() {

    List<ThreadReference> threads = null;
    VirtualMachine vm = getVM();
    if (vm != null) {
      try {
        String name = vm.name();
        fSupportsDisableGC = !name.equals("Classic VM"); //$NON-NLS-1$
      } catch (RuntimeException e) {
        internalError(e);
      }
      try {
        threads = vm.allThreads();
      } catch (RuntimeException e) {
        internalError(e);
      }
      if (threads != null) {
        Iterator<ThreadReference> initialThreads = threads.iterator();
View Full Code Here

   */
  public boolean supportsInstanceBreakpoints() {
    if (isAvailable()
        && JDIDebugPlugin.isJdiVersionGreaterThanOrEqual(new int[] { 1,
            4 })) {
      VirtualMachine vm = getVM();
      if (vm != null) {
        return vm.canUseInstanceFilters();
      }
    }
    return false;
  }
View Full Code Here

   * VM.
   *
   * @return whether this debug target supports J9 hot code replace
   */
  public boolean supportsJ9HotCodeReplace() {
    VirtualMachine vm = getVM();
    if (isAvailable() && vm instanceof org.eclipse.jdi.hcr.VirtualMachine) {
      try {
        return ((org.eclipse.jdi.hcr.VirtualMachine) vm)
            .canReloadClasses();
      } catch (UnsupportedOperationException e) {
View Full Code Here

   */
  public boolean supportsJDKHotCodeReplace() {
    if (isAvailable()
        && JDIDebugPlugin.isJdiVersionGreaterThanOrEqual(new int[] { 1,
            4 })) {
      VirtualMachine vm = getVM();
      if (vm != null) {
        return vm.canRedefineClasses();
      }
    }
    return false;
  }
View Full Code Here

   */
  public boolean canPopFrames() {
    if (isAvailable()
        && JDIDebugPlugin.isJdiVersionGreaterThanOrEqual(new int[] { 1,
            4 })) {
      VirtualMachine vm = getVM();
      if (vm != null) {
        return vm.canPopFrames();
      }
    }
    return false;
  }
View Full Code Here

      notSupported(JDIDebugModelMessages.JDIDebugTarget_does_not_support_disconnect);
    }

    try {
      disposeThreadHandler();
      VirtualMachine vm = getVM();
      if (vm != null) {
        vm.dispose();
      }
    } catch (VMDisconnectedException e) {
      // if the VM disconnects while disconnecting, perform
      // normal disconnect handling
      disconnected();
View Full Code Here

TOP

Related Classes of com.sun.jdi.VirtualMachine

Copyright © 2018 www.massapicom. 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.