< prev index next >

test/jdk/com/sun/jdi/lib/jdb/Jdb.java

Print this page

        

@@ -221,11 +221,12 @@
 
         if (inputWriter.checkError()) {
             throw new RuntimeException("Unexpected IO error while writing command '" + cmd.cmd + "' to jdb stdin stream");
         }
 
-        return waitForPrompt(1, cmd.allowExit);
+        return cmd.replyIsSimplePrompt ? waitForSimplePrompt(1, cmd.allowExit) :
+                waitForPrompt(1, cmd.allowExit);
     }
 
     public List<String> command(String cmd) {
         return command(new JdbCommand(cmd));
     }
< prev index next >