interpret.cc (check_handler): Fix bit rot.
authorAndrew Haley <aph@redhat.com>
Tue, 12 Jul 2011 12:56:50 +0000 (12:56 +0000)
committerAndrew Haley <aph@gcc.gnu.org>
Tue, 12 Jul 2011 12:56:50 +0000 (12:56 +0000)
2011-07-12  Andrew Haley  <aph@redhat.com>

        * interpret.cc (check_handler): Fix bit rot.
        (breakpoint_at): Likewise.

From-SVN: r176200

libjava/ChangeLog
libjava/interpret.cc

index 4715590d9e7d1f1ef7254403c7b446ea50719c38..98b72f501fe6e1abe0f62a0525b8c9ac70e4404a 100644 (file)
@@ -1,3 +1,8 @@
+2011-07-12  Andrew Haley  <aph@redhat.com>
+
+       * interpret.cc (check_handler): Fix bit rot.
+       (breakpoint_at): Likewise.
+
 2011-07-12  Andrew Haley  <aph@redhat.com>
 
        * java/lang/natClass.cc (finalize): Make sure that the class
index 3f690d7b27c0b95e66868fb63aefde0ff5c283a1..ab28836293e47836962f24f821f300032b826fbb 100644 (file)
@@ -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<pc_t> (bytecode ());
-      return (code[index] == breakpoint_insn);
+      return (code[index] == bp_insn_opcode);
 #endif
     }