* gnu/classpath/jdwp/VMVirtualMachine.java

(initialize): Declare.
        * gnu/classpath/jdwp/natVMVirtualMachine.cc
        (initialize): Get and save JVMTI environment.

From-SVN: r116357
This commit is contained in:
Keith Seitz 2006-08-23 22:18:08 +00:00 committed by Keith Seitz
parent 12b3553fe4
commit a4d0390b44
3 changed files with 21 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2006-08-23 Keith Seitz <keiths@redhat.com>
* gnu/classpath/jdwp/VMVirtualMachine.java
(initialize): Declare.
* gnu/classpath/jdwp/natVMVirtualMachine.cc
(initialize): Get and save JVMTI environment.
2006-08-22 Thomas Fitzsimmons <fitzsim@redhat.com>
PR libgcj/27890

View File

@ -57,6 +57,8 @@ import java.util.Iterator;
*/
public class VMVirtualMachine
{
public static native void initialize ();
/**
* Suspend a thread
*

View File

@ -10,6 +10,8 @@ details. */
#include <config.h>
#include <gcj/cni.h>
#include <jvm.h>
#include <jvmti.h>
#include <java/lang/Class.h>
#include <java/lang/ClassLoader.h>
@ -28,6 +30,16 @@ using namespace java::lang;
using namespace gnu::classpath::jdwp::event;
using namespace gnu::classpath::jdwp::util;
// JVMTI environment
static jvmtiEnv *_jdwp_jvmtiEnv;
void
gnu::classpath::jdwp::VMVirtualMachine::initialize ()
{
JavaVM *vm = _Jv_GetJavaVM ();
vm->GetEnv (reinterpret_cast<void **> (&_jdwp_jvmtiEnv), JVMTI_VERSION_1_0);
}
void
gnu::classpath::jdwp::VMVirtualMachine ::suspendThread (Thread *thread)
{