diff options
author | kseitz <kseitz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-05-24 20:40:47 +0000 |
---|---|---|
committer | kseitz <kseitz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-05-24 20:40:47 +0000 |
commit | a78b652c30ccccb155dc1d9d644e8f42a53d6d19 (patch) | |
tree | 392327dccccc4770b0a2781a808516934695154c /libjava/include | |
parent | 3ec4bac06271df56944bc68716e9f21798301a99 (diff) | |
download | gcc-a78b652c30ccccb155dc1d9d644e8f42a53d6d19.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@125040 138bc75d-0d04-0410-961f-82ee72b054a4
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 52a04e78e1d..204a49fb794 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; } }; |