java-interp.h (breakpoint_at): Declare.

* include/java-interp.h (breakpoint_at): Declare.
        * interpret.cc (breakpoint_at): New function.
        * gnu/classpath/jdwp/VMVirtualMachine.java (_event_list):
        New member.
        * gnu/classpath/jdwp/natVMVirtualMachine.cc (initialize):
        Initialize _event_list.
        (handle_single_step): If there is a breakpoint at the
        location at which we are stopping, do not send the notification.
        Instead add the event to a list of events that occur at this
        location.
        (jdwpBreakpointCB): If the event list is not empty, send
        whatever events are in it and the breakpoint event in a single
        notification.
        Mark parameter jni_env as MAYBE_UNUSED.
        * classpath/lib/gnu/classpath/jdwp/VMVirtualMachine.class:
        Regenerated.
        * gnu/classpath/jdwp/VMVirtualMachine.h: Regenerated.

From-SVN: r124777
This commit is contained in:
Keith Seitz 2007-05-16 20:12:33 +00:00 committed by Keith Seitz
parent c747a42fb4
commit 8faab1f43b
6 changed files with 71 additions and 5 deletions

View file

@ -1580,6 +1580,23 @@ _Jv_InterpMethod::set_insn (jlong index, pc_t insn)
return &code[index];
}
bool
_Jv_InterpMethod::breakpoint_at (jlong index)
{
pc_t insn = get_insn (index);
if (insn != NULL)
{
#ifdef DIRECT_THREADED
return (insn->insn == breakpoint_insn->insn);
#else
pc_t code = reinterpret_cast<pc_t> (bytecode ());
return (code[index] == breakpoint_insn);
#endif
}
return false;
}
void *
_Jv_JNIMethod::ncode (jclass klass)
{