< prev index next >

src/jdk.jdi/share/classes/com/sun/tools/example/debug/tty/TTY.java

Print this page
@@ -1,7 +1,7 @@
  /*
-  * Copyright (c) 1998, 2020, Oracle and/or its affiliates. All rights reserved.
+  * Copyright (c) 1998, 2021, Oracle and/or its affiliates. All rights reserved.
   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   *
   * This code is free software; you can redistribute it and/or modify it
   * under the terms of the GNU General Public License version 2 only, as
   * published by the Free Software Foundation.  Oracle designates this

@@ -1107,10 +1107,14 @@
                             connectSpec);
                  return;
              }
          }
  
+         if (connectSpec.startsWith("com.sun.jdi.CommandLineLaunch:")) {
+             connectSpec += "enumeratevthreads=y,notifyvthreads=y,";
+         }
+ 
          try {
              Env.init(connectSpec, launchImmediately, traceFlags, javaArgs);
              new TTY();
          } catch(Exception e) {
              MessageOutput.printException("Internal exception:", e);
< prev index next >