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:
parent
ef9cc8efb4
commit
e1b871ecc1
6 changed files with 53 additions and 12 deletions
|
@ -466,9 +466,9 @@ public:
|
|||
if (pc_ptr == NULL)
|
||||
pc = 0;
|
||||
else
|
||||
pc = *pc_ptr;
|
||||
pc = *pc_ptr - 1;
|
||||
|
||||
return pc - 1;
|
||||
return pc;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue