use of com.oracle.truffle.espresso.jdwp.impl.FieldBreakpointEvent in project graal by oracle.
the class VMEventListenerImpl method onFieldModification.
@Override
@TruffleBoundary
public boolean onFieldModification(FieldRef field, Object receiver, Object value) {
boolean active = false;
for (FieldBreakpoint info : field.getFieldBreakpointInfos()) {
if (info.isModificationBreakpoint()) {
// OK, tell the Debug API to suspend the thread now
debuggerController.prepareFieldBreakpoint(new FieldBreakpointEvent((FieldBreakpointInfo) info, receiver, value));
debuggerController.suspend(context.asGuestThread(Thread.currentThread()));
active = true;
}
}
return active;
}
use of com.oracle.truffle.espresso.jdwp.impl.FieldBreakpointEvent in project graal by oracle.
the class VMEventListenerImpl method onFieldAccess.
@Override
@TruffleBoundary
public boolean onFieldAccess(FieldRef field, Object receiver) {
boolean active = false;
for (FieldBreakpoint info : field.getFieldBreakpointInfos()) {
if (info.isAccessBreakpoint()) {
// OK, tell the Debug API to suspend the thread now
debuggerController.prepareFieldBreakpoint(new FieldBreakpointEvent((FieldBreakpointInfo) info, receiver));
debuggerController.suspend(context.asGuestThread(Thread.currentThread()));
active = true;
}
}
return active;
}
Aggregations