summaryrefslogtreecommitdiff
path: root/libjava/include/jvmti_md.h
diff options
context:
space:
mode:
authorkseitz <kseitz@138bc75d-0d04-0410-961f-82ee72b054a4>2007-01-29 17:43:34 +0000
committerkseitz <kseitz@138bc75d-0d04-0410-961f-82ee72b054a4>2007-01-29 17:43:34 +0000
commite27378f2ff576bc3cc09022e4bd13b72532e2188 (patch)
tree186cf38e0affab2bbcb19802d5501e67e12a76eb /libjava/include/jvmti_md.h
parentc2bed4327c2dd27b87518532d417674d4edcc9c7 (diff)
downloadgcc-e27378f2ff576bc3cc09022e4bd13b72532e2188.tar.gz
* include/jvmti_md.h (_CLASSPATH_VM_JVMTI_TYPES_DEFINED):
Define. [__GCJ_JNI_IMPL__]: Define our own JVMTI types when building gcj. All jvmti object types now are defined to be their corresponding java classes. * jvmti.cc (_Jv_JVMTI_SuspendThread): Remove casting from jthread to Thread*. (_Jv_JVMTI_ResumeThread): Likewise. (_Jv_JVMTI_InterruptThread): Likewise. (_Jv_JVMTI_SetEventNotificationMode): Likewise. * gnu/classpath/jdwp/natVMVirtualMachine.cc (jdwpClassPrepareCB): Likewise. (jdwpThreadEndCB): Likewise. (jdwpThreadStartCB): Likewise. (jdwpVMInitCB): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121296 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/include/jvmti_md.h')
-rw-r--r--libjava/include/jvmti_md.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/libjava/include/jvmti_md.h b/libjava/include/jvmti_md.h
index 549d42151d3..2270f3f3d16 100644
--- a/libjava/include/jvmti_md.h
+++ b/libjava/include/jvmti_md.h
@@ -1,5 +1,5 @@
/* jvmti_md.h
- Copyright (C) 2006 Free Software Foundation, Inc.
+ Copyright (C) 2006, 2007 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -53,6 +53,14 @@ executable file might be covered by the GNU General Public License. */
/* One for each callback. */ \
bool enabled[EVENT_SLOTS];
+/* Redefine the standard JVMTI types to something a little more
+ precise than "jobject". */
+#define _CLASSPATH_VM_JVMTI_TYPES_DEFINED
+typedef java::lang::Thread *jthread;
+typedef java::lang::ThreadGroup *jthreadGroup;
+typedef jlong jlocation;
+typedef struct _Jv_rawMonitorID *jrawMonitorID;
+
#endif /* __GCJ_JNI_IMPL__ */
#endif /* __GCJ_JVMTI_MD_H__ */