diff options
author | Keith Seitz <keiths@redhat.com> | 2007-05-24 20:40:47 +0000 |
---|---|---|
committer | Keith Seitz <kseitz@gcc.gnu.org> | 2007-05-24 20:40:47 +0000 |
commit | e1b871ecc12b6c2a7b62a64ffbbd0714ab8d5c56 (patch) | |
tree | 392327dccccc4770b0a2781a808516934695154c /libjava/include | |
parent | ef9cc8efb487e4df0d6e3b4769b27f1a116ad3d3 (diff) | |
download | gcc-e1b871ecc12b6c2a7b62a64ffbbd0714ab8d5c56.zip gcc-e1b871ecc12b6c2a7b62a64ffbbd0714ab8d5c56.tar.gz gcc-e1b871ecc12b6c2a7b62a64ffbbd0714ab8d5c56.tar.bz2 |
java-interp.h (_Jv_InterpFrame::get_pc): Only deduct one when pc_ptr is non-NULL.
* include/java-interp.h (_Jv_InterpFrame::get_pc): Only deduct
one when pc_ptr is non-NULL.
* prims.cc (parse_init_args): Enable JVMTI with agentlib
and agentpath options.
* testsuite/lib/libjava.exp (exec_gij): Add new addl_flags
parameter.
* testsuite/libjava.jvmti/jvmti-interp.exp (gij_jvmti_test_one):
Pass '-agentlib:dummyagent' when executing gij.
(gij_jvmti_run): Build dummy JVMTI agent before running tests,
and remove it when finished.
* testsuite/libjava.jvmti/dummyagent.c: New file.
From-SVN: r125040
Diffstat (limited to 'libjava/include')
-rw-r--r-- | libjava/include/java-interp.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libjava/include/java-interp.h b/libjava/include/java-interp.h index 52a04e7..204a49f 100644 --- a/libjava/include/java-interp.h +++ b/libjava/include/java-interp.h @@ -466,9 +466,9 @@ public: if (pc_ptr == NULL) pc = 0; else - pc = *pc_ptr; + pc = *pc_ptr - 1; - return pc - 1; + return pc; } }; |