From: Andrew Haley Date: Tue, 12 Jul 2011 12:56:50 +0000 (+0000) Subject: interpret.cc (check_handler): Fix bit rot. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b46a23dd68efa720566e94e63653bdc49d3bfbc6;p=gcc.git interpret.cc (check_handler): Fix bit rot. 2011-07-12 Andrew Haley * interpret.cc (check_handler): Fix bit rot. (breakpoint_at): Likewise. From-SVN: r176200 --- diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 4715590d9e7..98b72f501fe 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,8 @@ +2011-07-12 Andrew Haley + + * interpret.cc (check_handler): Fix bit rot. + (breakpoint_at): Likewise. + 2011-07-12 Andrew Haley * java/lang/natClass.cc (finalize): Make sure that the class diff --git a/libjava/interpret.cc b/libjava/interpret.cc index 3f690d7b27c..ab28836293e 100644 --- a/libjava/interpret.cc +++ b/libjava/interpret.cc @@ -1474,7 +1474,7 @@ _Jv_InterpMethod::check_handler (pc_t *pc, _Jv_InterpMethod *meth, if (exc[i].handler_type.i != 0) handler = (_Jv_Linker::resolve_pool_entry (meth->defining_class, - ex$ + exc[i].handler_type.i)).clazz; #endif /* DIRECT_THREADED */ if (handler == NULL || handler->isAssignableFrom (exc_class)) { @@ -1626,7 +1626,7 @@ _Jv_InterpMethod::breakpoint_at (jlong index) return (insn->insn == breakpoint_insn->insn); #else pc_t code = reinterpret_cast (bytecode ()); - return (code[index] == breakpoint_insn); + return (code[index] == bp_insn_opcode); #endif }