summaryrefslogtreecommitdiff
path: root/libjava/include
diff options
context:
space:
mode:
authorKeith Seitz <keiths@redhat.com>2007-01-29 17:43:34 +0000
committerKeith Seitz <kseitz@gcc.gnu.org>2007-01-29 17:43:34 +0000
commit68254f23e8c232a4da9b6f0e3fdabe1800a4b014 (patch)
tree186cf38e0affab2bbcb19802d5501e67e12a76eb /libjava/include
parent48e540b04f64910218cc702d0e05760e2eb1ef44 (diff)
downloadgcc-68254f23e8c232a4da9b6f0e3fdabe1800a4b014.tar.gz
jvmti_md.h (_CLASSPATH_VM_JVMTI_TYPES_DEFINED): Define.
* 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. From-SVN: r121296
Diffstat (limited to 'libjava/include')
-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__ */