diff options
author | kseitz <kseitz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-07-20 19:30:30 +0000 |
---|---|---|
committer | kseitz <kseitz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-07-20 19:30:30 +0000 |
commit | aa705a651c253c091706d2f38247c212a02f5154 (patch) | |
tree | 74b5eb32122e2c9c320ddc672d207de4a0a96ef1 /libjava/jvmti.cc | |
parent | 51c66eeef7c43fdd78be583137af303c4709b87a (diff) | |
download | gcc-aa705a651c253c091706d2f38247c212a02f5154.tar.gz |
* include/jvm.h (_Jv_GetJVMTIEnv): Declare.
* jni.cc (_Jv_JNI_GetEnv): Handle JVMTI requests.
* jvmti.cc: New file.
* Makefile.am (libgcj_la_SOURCES): Add jvmti.cc.
* Makefile.in: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@115629 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/jvmti.cc')
-rw-r--r-- | libjava/jvmti.cc | 184 |
1 files changed, 184 insertions, 0 deletions
diff --git a/libjava/jvmti.cc b/libjava/jvmti.cc new file mode 100644 index 00000000000..8bebef8c219 --- /dev/null +++ b/libjava/jvmti.cc @@ -0,0 +1,184 @@ +// jvmti.cc - JVMTI implementation + +/* Copyright (C) 2006 Free Software Foundation + + This file is part of libgcj. + +This software is copyrighted work licensed under the terms of the +Libgcj License. Please consult the file "LIBGCJ_LICENSE" for +details. */ + +#include <config.h> + +#include <jvm.h> +#include <jvmti.h> + +#define RESERVED NULL +#define UNIMPLEMENTED NULL + +struct _Jv_jvmtiEnv _Jv_JVMTI_Interface = +{ + RESERVED, // reserved1 + UNIMPLEMENTED, // SetEventNotification + RESERVED, // reserved3 + UNIMPLEMENTED, // GetAllThreads + UNIMPLEMENTED, // SuspendThread + UNIMPLEMENTED, // ResumeThread + UNIMPLEMENTED, // StopThread + UNIMPLEMENTED, // InterruptThread + UNIMPLEMENTED, // GetThreadInfo + UNIMPLEMENTED, // GetOwnedMonitorInfo + UNIMPLEMENTED, // GetCurrentContendedMonitor + UNIMPLEMENTED, // RunAgentThread + UNIMPLEMENTED, // GetTopThreadGroups + UNIMPLEMENTED, // GetThreadGroupInfo + UNIMPLEMENTED, // GetThreadGroupChildren + UNIMPLEMENTED, // GetFrameCount + UNIMPLEMENTED, // GetThreadState + RESERVED, // reserved18 + UNIMPLEMENTED, // GetFrameLocation + UNIMPLEMENTED, // NotifyPopFrame + UNIMPLEMENTED, // GetLocalObject + UNIMPLEMENTED, // GetLocalInt + UNIMPLEMENTED, // GetLocalLong + UNIMPLEMENTED, // GetLocalFloat + UNIMPLEMENTED, // GetLocalDouble + UNIMPLEMENTED, // SetLocalObject + UNIMPLEMENTED, // SetLocalInt + UNIMPLEMENTED, // SetLocalLong + UNIMPLEMENTED, // SetLocalFloat + UNIMPLEMENTED, // SetLocalDouble + UNIMPLEMENTED, // CreateRawMonitor + UNIMPLEMENTED, // DestroyRawMonitor + UNIMPLEMENTED, // RawMonitorEnter + UNIMPLEMENTED, // RawMonitorExit + UNIMPLEMENTED, // RawMonitorWait + UNIMPLEMENTED, // RawMonitorNotify + UNIMPLEMENTED, // RawMonitorNotifyAll + UNIMPLEMENTED, // SetBreakpoint + UNIMPLEMENTED, // CleareBreakpoint + RESERVED, // reserved40 + UNIMPLEMENTED, // SetFieldAccessWatch + UNIMPLEMENTED, // ClearFieldAccessWatch + UNIMPLEMENTED, // SetFieldModificationWatch + UNIMPLEMENTED, // ClearFieldModificationWatch + RESERVED, // reserved45 + UNIMPLEMENTED, // Allocate + UNIMPLEMENTED, // Deallocate + UNIMPLEMENTED, // GetClassSignature + UNIMPLEMENTED, // GetClassStatus + UNIMPLEMENTED, // GetSourceFileName + UNIMPLEMENTED, // GetClassModifiers + UNIMPLEMENTED, // GetClassMethods + UNIMPLEMENTED, // GetClassFields + UNIMPLEMENTED, // GetImplementedInterfaces + UNIMPLEMENTED, // IsInterface + UNIMPLEMENTED, // IsArrayClass + UNIMPLEMENTED, // GetClassLoader + UNIMPLEMENTED, // GetObjectHashCode + UNIMPLEMENTED, // GetObjectMonitorUsage + UNIMPLEMENTED, // GetFieldName + UNIMPLEMENTED, // GetFieldDeclaringClass + UNIMPLEMENTED, // GetFieldModifiers + UNIMPLEMENTED, // IsFieldSynthetic + UNIMPLEMENTED, // GetMethodName + UNIMPLEMENTED, // GetMethodDeclaringClass + UNIMPLEMENTED, // GetMethodModiifers + RESERVED, // reserved67 + UNIMPLEMENTED, // GetMaxLocals + UNIMPLEMENTED, // GetArgumentsSize + UNIMPLEMENTED, // GetLineNumberTable + UNIMPLEMENTED, // GetMethodLocation + UNIMPLEMENTED, // GetLocalVariableTable + RESERVED, // reserved73 + RESERVED, // reserved74 + UNIMPLEMENTED, // GetBytecodes + UNIMPLEMENTED, // IsMethodNative + UNIMPLEMENTED, // IsMethodSynthetic + UNIMPLEMENTED, // GetLoadedClasses + UNIMPLEMENTED, // GetClassLoaderClasses + UNIMPLEMENTED, // PopFrame + RESERVED, // reserved81 + RESERVED, // reserved82 + RESERVED, // reserved83 + RESERVED, // reserved84 + RESERVED, // reserved85 + RESERVED, // reserved86 + UNIMPLEMENTED, // RedefineClasses + UNIMPLEMENTED, // GetVersionNumber + UNIMPLEMENTED, // GetCapabilities + UNIMPLEMENTED, // GetSourceDebugExtension + UNIMPLEMENTED, // IsMethodObsolete + UNIMPLEMENTED, // SuspendThreadList + UNIMPLEMENTED, // ResumeThreadList + RESERVED, // reserved94 + RESERVED, // reserved95 + RESERVED, // reserved96 + RESERVED, // reserved97 + RESERVED, // reserved98 + RESERVED, // reserved99 + UNIMPLEMENTED, // GetAllStackTraces + UNIMPLEMENTED, // GetThreadListStackTraces + UNIMPLEMENTED, // GetThreadLocalStorage + UNIMPLEMENTED, // SetThreadLocalStorage + UNIMPLEMENTED, // GetStackTrace + RESERVED, // reserved105 + UNIMPLEMENTED, // GetTag + UNIMPLEMENTED, // SetTag + UNIMPLEMENTED, // ForceGarbageCollection + UNIMPLEMENTED, // IterateOverObjectsReachable + UNIMPLEMENTED, // IterateOverReachableObjects + UNIMPLEMENTED, // IterateOverHeap + UNIMPLEMENTED, // IterateOverInstanceOfClass + RESERVED, // reserved113 + UNIMPLEMENTED, // GetObjectsWithTags + RESERVED, // reserved115 + RESERVED, // reserved116 + RESERVED, // reserved117 + RESERVED, // reserved118 + RESERVED, // reserved119 + UNIMPLEMENTED, // SetJNIFunctionTable + UNIMPLEMENTED, // GetJNIFunctionTable + UNIMPLEMENTED, // SetEventCallbacks + UNIMPLEMENTED, // GenerateEvents + UNIMPLEMENTED, // GetExtensionFunctions + UNIMPLEMENTED, // GetExtensionEvents + UNIMPLEMENTED, // SetExtensionEventCallback + UNIMPLEMENTED, // DisposeEnvironment + UNIMPLEMENTED, // GetErrorName + UNIMPLEMENTED, // GetJLocationFormat + UNIMPLEMENTED, // GetSystemProperties + UNIMPLEMENTED, // GetSystemProperty + UNIMPLEMENTED, // SetSystemProperty + UNIMPLEMENTED, // GetPhase + UNIMPLEMENTED, // GetCurrentThreadCpuTimerInfo + UNIMPLEMENTED, // GetCurrentThreadCpuTime + UNIMPLEMENTED, // GetThreadCpuTimerInfo + UNIMPLEMENTED, // GetThreadCpuTime + UNIMPLEMENTED, // GetTimerInfo + UNIMPLEMENTED, // GetTime + UNIMPLEMENTED, // GetPotentialCapabilities + RESERVED, // reserved141 + UNIMPLEMENTED, // AddCapabilities + UNIMPLEMENTED, // RelinquishCapabilities + UNIMPLEMENTED, // GetAvailableProcessors + RESERVED, // reserved145 + RESERVED, // reserved146 + UNIMPLEMENTED, // GetEnvironmentLocalStorage + UNIMPLEMENTED, // SetEnvironmentLocalStorage + UNIMPLEMENTED, // AddToBootstrapClassLoaderSearch + UNIMPLEMENTED, // SetVerboseFlag + RESERVED, // reserved151 + RESERVED, // reserved152 + RESERVED, // reserved153 + UNIMPLEMENTED // GetObjectSize +}; + +_Jv_JVMTIEnv * +_Jv_GetJVMTIEnv (void) +{ + _Jv_JVMTIEnv *env + = (_Jv_JVMTIEnv *) _Jv_MallocUnchecked (sizeof (_Jv_JVMTIEnv)); + env->p = &_Jv_JVMTI_Interface; + return env; +} |