summaryrefslogtreecommitdiff
path: root/libjava/prims.cc
diff options
context:
space:
mode:
authorkseitz <kseitz@138bc75d-0d04-0410-961f-82ee72b054a4>2007-05-24 20:40:47 +0000
committerkseitz <kseitz@138bc75d-0d04-0410-961f-82ee72b054a4>2007-05-24 20:40:47 +0000
commita78b652c30ccccb155dc1d9d644e8f42a53d6d19 (patch)
tree392327dccccc4770b0a2781a808516934695154c /libjava/prims.cc
parent3ec4bac06271df56944bc68716e9f21798301a99 (diff)
downloadgcc-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/prims.cc')
-rw-r--r--libjava/prims.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/libjava/prims.cc b/libjava/prims.cc
index c2ecaf12374..706ab4b7a3e 100644
--- a/libjava/prims.cc
+++ b/libjava/prims.cc
@@ -1,6 +1,6 @@
// prims.cc - Code for core of runtime environment.
-/* Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation
+/* Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software Foundation
This file is part of libgcj.
@@ -1522,6 +1522,9 @@ parse_init_args (JvVMInitArgs* vm_args)
{
return -1;
}
+
+ // Mark JVMTI active
+ JVMTI::enabled = true;
}
continue;
@@ -1564,6 +1567,8 @@ parse_init_args (JvVMInitArgs* vm_args)
return -1;
}
+ // Mark JVMTI active
+ JVMTI::enabled = true;
continue;
}
else if (vm_args->ignoreUnrecognized)