Name: md23716 Date: 06/18/2001
The call to disable Single Step events fails with an
error code INVALID THREAD. The thread parameter which is
being passed is NULL to request a global disable which should
be valid for the thread parameter.
The Sun documentation for JVMDI found at
http://java.sun.com/j2se/1.3/docs/guide/jpda/jvmdi-spec.html
describes the enabling and disabling of JVMDI events
both globally and for particular threads.
"Control the generation of events. If mode is JVMDI_ENABLE, the event eventType is enabled; if mode is JVMDI_DISABLE, the event is disabled. If thread is NULL, the event is enabled or disabled globally; otherwise, it is enabled or disabled for a particular thread. An event is generated for a particular thread if it is enabled either at the thread or global levels."
The tests that we have run show that JVMDI_EVENT_SINGLE_STEP cannot be
enabled or disabled globally, but the documentation does not make this clear.
It is reasonable that it is not possible to enable single step events globally. However depending on the interaction between global and thread enablement (which is also not properly explained) it could be argued that single step disablement on a global basis would be useful.
This problem will be resolved when the documentation and the implementation are in step.
======================================================================