Commit 684d91ef authored by Sebastien Hertz's avatar Sebastien Hertz
Browse files

Test event requests with LocationOnly modifier other than breakpoint

Checks we correctly support LocationOnly modifier for all possible
events other than breakpoint: single-step, exception, field access
and field modification events.

For exception and field access/modification events, we throw or
access/modify a field in two different methods. Then we request
corresponding event with a LocationOnly modifier related to the
second method only.
Since a location is {class id, method id, code index}, we'd need to
know exactly the code index where the event can be reported. As we
do not know the code (instructions and their respective code index),
we simply send an event request for each location. The common
testing code is in EventLocationEventTestCase class.

For single-step, we can't do the same because we can't request
multiple single-step events on the same thread. So we suspend in a
method, then single-step to the location of the last line of this
method.

Also move "resume debuggee" message into JDWPTestCase.resumeDebuggee
method so this is printed for all tests using it.

Change-Id: Id37df7560b588b8817c1dcf0ac29b1e5ebb91091
parent 336059d5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment