Commit a4d0390b by Keith Seitz Committed by Keith Seitz

* gnu/classpath/jdwp/VMVirtualMachine.java

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

From-SVN: r116357
parent 12b3553f
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
......
......@@ -57,6 +57,8 @@ import java.util.Iterator;
*/
public class VMVirtualMachine
{
public static native void initialize ();
/**
* Suspend a thread
*
......
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment