JDK-4796789 : TTY: jdb should be able to run batch commands synchronously
  • Type: Enhancement
  • Component: core-svc
  • Sub-Component: debugger
  • Affected Version: 1.4.2
  • Priority: P4
  • Status: Closed
  • Resolution: Won't Fix
  • OS: generic
  • CPU: generic
  • Submitted: 2002-12-20
  • Updated: 2017-05-19
  • Resolved: 2016-11-03
Related Reports
Relates :  
Description
Name: dkR10014			Date: 12/20/2002


I found that only commands that do not affects an execution point in 
debugee can be used in the 'read' command file because batch commands
are executed asynchronously in it. It is almost impossible to use the
commands like 'cont' and 'step' in interaction with others in command
file because of undefined execution point.
Another mode of this command (or another command) should exist in case 
when next command should not be executed before a completion of previous
one. This could help much in typical debug scenario like:
  stop at ...   - set breakpoint at a point where debugee will be in 
                  desired state;
  cont          - resume debugee;
                  wait until the breakpoint is hit;
  eval <expr>   - check an assertion.
  ...

======================================================================

Comments
This is not on our list of current priorities, if this changes please re-open this issue.
03-11-2016

EVALUATION Requested by testing organization. This behavior will make it easier to automate testing of jdb and the JDI stack. Our current jdb tests are a source of spurious test failures, due to the asynchronous nature of command execution. ###@###.### 2005-06-15 22:54:15 GMT
15-06-2005