diff options
author | Tom Tromey <tromey@redhat.com> | 2006-10-20 21:43:36 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2006-10-20 21:43:36 +0000 |
commit | 23f1d24742de26b12172dc94fa214a9e890c3744 (patch) | |
tree | f7048de4a14c319e09a3292cb4b11aa3d1dce4f7 /libjava/testsuite/libjava.jvmti | |
parent | 4c9fb8704ae3893ac39729e9713f8046fac6e1d7 (diff) | |
download | gcc-23f1d24742de26b12172dc94fa214a9e890c3744.zip gcc-23f1d24742de26b12172dc94fa214a9e890c3744.tar.gz gcc-23f1d24742de26b12172dc94fa214a9e890c3744.tar.bz2 |
natevents.cc (do_callback_arg_tests): Correctly pass jvalues.
* testsuite/libjava.jvmti/natevents.cc (do_callback_arg_tests):
Correctly pass jvalues.
From-SVN: r117913
Diffstat (limited to 'libjava/testsuite/libjava.jvmti')
-rw-r--r-- | libjava/testsuite/libjava.jvmti/natevents.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libjava/testsuite/libjava.jvmti/natevents.cc b/libjava/testsuite/libjava.jvmti/natevents.cc index 2945e23..40e06bd 100644 --- a/libjava/testsuite/libjava.jvmti/natevents.cc +++ b/libjava/testsuite/libjava.jvmti/natevents.cc @@ -498,14 +498,18 @@ do_callback_arg_tests () _Jv_JVMTI_PostEvent (JVMTI_EVENT_FIELD_ACCESS, (jthread) 0x2, (JNIEnv *) 0x1, (jmethodID) 0x3, (jlocation) 0x4, (jclass) 0x5, (jobject) 0x6, (jfieldID) 0x7); + jvalue value; + value.l = (jobject) 0x9; _Jv_JVMTI_PostEvent (JVMTI_EVENT_FIELD_MODIFICATION, (jthread) 0x2, (JNIEnv *) 0x1, (jmethodID) 0x3, (jlocation) 0x4, (jclass) 0x5, (jobject) 0x6, (jfieldID) 0x7, - (int) '8', (/*jvalue*/ jobject) 0x9); + (int) '8', value); _Jv_JVMTI_PostEvent (JVMTI_EVENT_METHOD_ENTRY, (jthread) 0x2, (JNIEnv *) 0x1, (jmethodID) 0x3); + jvalue value2; + value2.i = 5; _Jv_JVMTI_PostEvent (JVMTI_EVENT_METHOD_EXIT, (jthread) 0x2, - (JNIEnv *) 0x1, (jmethodID) 0x3, 4, /*jvalue*/ 5); + (JNIEnv *) 0x1, (jmethodID) 0x3, 4, value2); _Jv_JVMTI_PostEvent (JVMTI_EVENT_NATIVE_METHOD_BIND, (jthread) 0x2, (JNIEnv *) 0x1, (jmethodID) 0x3, (void *) 0x4, (void **) 0x5); |