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
9
libjava/testsuite/libjava.jvmti/dummyagent.c
Normal file
9
libjava/testsuite/libjava.jvmti/dummyagent.c
Normal file
|
@ -0,0 +1,9 @@
|
|||
#include <jvmti.h>
|
||||
|
||||
JNIEXPORT jint JNICALL
|
||||
Agent_OnLoad (JavaVM *vm, char *options, void *reserved)
|
||||
{
|
||||
// nothing -- this is just a stub to get JVMTI properly
|
||||
// initialized
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue