diff options
author | Dave Korn <dave.korn.cygwin@gmail.com> | 2009-04-22 22:58:37 +0000 |
---|---|---|
committer | Dave Korn <davek@gcc.gnu.org> | 2009-04-22 22:58:37 +0000 |
commit | 912bb79567a3b7bf3824b4e4a97278233bae337a (patch) | |
tree | f2636bc47ce0379f34e89044767611304266b710 /libjava/gnu | |
parent | b7babd5d428f7439b7cd83077b7c3d902570e0ea (diff) | |
download | gcc-912bb79567a3b7bf3824b4e4a97278233bae337a.zip gcc-912bb79567a3b7bf3824b4e4a97278233bae337a.tar.gz gcc-912bb79567a3b7bf3824b4e4a97278233bae337a.tar.bz2 |
natVMVirtualMachine.cc (handle_single_step): Use casted pointer in debugging assert.
* gnu/classpath/jdwp/natVMVirtualMachine.cc (handle_single_step): Use
casted pointer in debugging assert.
(jdwpBreakpointCB): Likewise.
From-SVN: r146627
Diffstat (limited to 'libjava/gnu')
-rw-r--r-- | libjava/gnu/classpath/jdwp/natVMVirtualMachine.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libjava/gnu/classpath/jdwp/natVMVirtualMachine.cc b/libjava/gnu/classpath/jdwp/natVMVirtualMachine.cc index ba12353..7bd300b 100644 --- a/libjava/gnu/classpath/jdwp/natVMVirtualMachine.cc +++ b/libjava/gnu/classpath/jdwp/natVMVirtualMachine.cc @@ -900,9 +900,9 @@ handle_single_step (jvmtiEnv *env, struct step_info *sinfo, jthread thread, VMMethod *vmmethod = new VMMethod (klass, reinterpret_cast<jlong> (method)); Location *loc = new Location (vmmethod, location); - JvAssert (thread->frame.frame_type == frame_interpreter); _Jv_InterpFrame *iframe = reinterpret_cast<_Jv_InterpFrame *> (thread->interp_frame); + JvAssert (iframe->frame_type == frame_interpreter); jobject instance = iframe->get_this_ptr (); event::SingleStepEvent *event = new event::SingleStepEvent (thread, loc, instance); @@ -957,9 +957,9 @@ jdwpBreakpointCB (jvmtiEnv *env, MAYBE_UNUSED JNIEnv *jni_env, jlong methodId = reinterpret_cast<jlong> (method); VMMethod *meth = VMVirtualMachine::getClassMethod (klass, methodId); Location *loc = new Location (meth, location); - JvAssert (thread->frame.frame_type == frame_interpreter); _Jv_InterpFrame *iframe = reinterpret_cast<_Jv_InterpFrame *> (thread->interp_frame); + JvAssert (iframe->frame_type == frame_interpreter); jobject instance = iframe->get_this_ptr (); BreakpointEvent *event = new BreakpointEvent (thread, loc, instance); |