From 8829ef30e475e306b0e6023cc62597f4d820b31b Mon Sep 17 00:00:00 2001 From: Geoffrey Keating Date: Tue, 17 Oct 2006 04:12:59 +0000 Subject: natevents.cc (env): Delete. * testsuite/libjava.jvmti/natevents.cc (env): Delete. (ExceptionCB): Fix types for printf arguments. (ExceptionCatchCB): Likewise. (SingleStepCB): Likewise. (BreakpointCB): Likewise. (FieldAccessCB): Likewise. (FieldModificationCB): Likewise. (CompiledMethodLoadCB): Likewise. From-SVN: r117817 --- libjava/ChangeLog | 11 +++++++++ libjava/testsuite/libjava.jvmti/natevents.cc | 34 +++++++++++++--------------- 2 files changed, 27 insertions(+), 18 deletions(-) (limited to 'libjava') diff --git a/libjava/ChangeLog b/libjava/ChangeLog index ababe76..98d4c41 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,14 @@ +2006-10-16 Geoffrey Keating + + * testsuite/libjava.jvmti/natevents.cc (env): Delete. + (ExceptionCB): Fix types for printf arguments. + (ExceptionCatchCB): Likewise. + (SingleStepCB): Likewise. + (BreakpointCB): Likewise. + (FieldAccessCB): Likewise. + (FieldModificationCB): Likewise. + (CompiledMethodLoadCB): Likewise. + 2006-10-14 Keith Seitz * include/java-insns.h (enum java_code): Add op_breakpoint. diff --git a/libjava/testsuite/libjava.jvmti/natevents.cc b/libjava/testsuite/libjava.jvmti/natevents.cc index d5720bb..2945e23 100644 --- a/libjava/testsuite/libjava.jvmti/natevents.cc +++ b/libjava/testsuite/libjava.jvmti/natevents.cc @@ -7,8 +7,6 @@ #include "jvmti-int.h" #include "events.h" -static jvmtiEnv *env = NULL; - void print_events () { @@ -119,18 +117,18 @@ ExceptionCB (jvmtiEnv *env, JNIEnv *jni_env, jthread thread, jmethodID method, jlocation location, jobject exception, jmethodID catch_method, jlocation catch_location) { - printf ("ExceptionCB jni_env=%p thread=%p method=%p location=%p", jni_env, - thread, method, location); - printf (" exception=%p catch_method=%p catch_location=%p\n", exception, - catch_method, catch_location); + printf ("ExceptionCB jni_env=%p thread=%p method=%p location=%#llx", jni_env, + thread, method, (unsigned long long) location); + printf (" exception=%p catch_method=%p catch_location=%#llx\n", exception, + catch_method, (unsigned long long) catch_location); } static void ExceptionCatchCB (jvmtiEnv *env, JNIEnv *jni_env, jthread thread, jmethodID method, jlocation location, jobject exception) { - printf ("ExceptionCatchCB jni_env=%p thread=%p method=%p location=%p", - jni_env, thread, method, location); + printf ("ExceptionCatchCB jni_env=%p thread=%p method=%p location=%#llx", + jni_env, thread, method, (unsigned long long) location); printf (" exception=%p\n", exception); } @@ -138,8 +136,8 @@ static void SingleStepCB (jvmtiEnv *env, JNIEnv *jni_env, jthread thread, jmethodID method, jlocation location) { - printf ("SingleStepCB jni_env=%p thread=%p method=%p location=%p\n", - jni_env, thread, method, location); + printf ("SingleStepCB jni_env=%p thread=%p method=%p location=%#llx\n", + jni_env, thread, method, (unsigned long long) location); } static void @@ -156,8 +154,8 @@ static void BreakpointCB (jvmtiEnv *env, JNIEnv *jni_env, jthread thread, jmethodID method, jlocation location) { - printf ("BreakpointCB jni_env=%p thread=%p method=%p location=%p\n", - jni_env, thread, method, location); + printf ("BreakpointCB jni_env=%p thread=%p method=%p location=%#llx\n", + jni_env, thread, method, (unsigned long long) location); } static void @@ -165,8 +163,8 @@ FieldAccessCB (jvmtiEnv *env, JNIEnv *jni_env, jthread thread, jmethodID method, jlocation location, jclass field_klass, jobject object, jfieldID field) { - printf ("FieldAccessCB jni_env=%p thread=%p method=%p location=%p", - jni_env, thread, method, location); + printf ("FieldAccessCB jni_env=%p thread=%p method=%p location=%#llx", + jni_env, thread, method, (unsigned long long) location); printf (" field_klass=%p object=%p field=%p\n", field_klass, object, field); } @@ -177,8 +175,8 @@ FieldModificationCB (jvmtiEnv *env, JNIEnv *jni_env, jthread thread, jvalue new_value) { - printf ("FieldModificationCB jni_env=%p thread=%p method=%p location=%p", - jni_env, thread, method, location); + printf ("FieldModificationCB jni_env=%p thread=%p method=%p location=%#llx", + jni_env, thread, method, (unsigned long long) location); printf (" field_klass=%p object=%p field=%p signature_type=%c", field_klass, object, field, signature_type); printf (" new_value=%d\n", (int) new_value.i); @@ -218,8 +216,8 @@ CompiledMethodLoadCB (jvmtiEnv *env, jmethodID method, jint code_size, const jvmtiAddrLocationMap *map, const void *compile_info) { - printf ("CompiledMethodLoadCB method=%p code_size=%p code_addr=%p", - method, code_size, code_addr); + printf ("CompiledMethodLoadCB method=%p code_size=%#x code_addr=%p", + method, (unsigned) code_size, code_addr); printf (" map_length=%d map=%p compile_info=%p\n", (int) map_length, map, compile_info); } -- cgit v1.1