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
This commit is contained in:
@@ -466,9 +466,9 @@ public:
|
||||
if (pc_ptr == NULL)
|
||||
pc = 0;
|
||||
else
|
||||
pc = *pc_ptr;
|
||||
pc = *pc_ptr - 1;
|
||||
|
||||
return pc - 1;
|
||||
return pc;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user