diff options
author | geoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-10-17 04:12:59 +0000 |
---|---|---|
committer | geoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-10-17 04:12:59 +0000 |
commit | 101bf67910f8ed1983bfe57d8a72493de97de118 (patch) | |
tree | 2f3ea7ae85da8052160a40c7f803daa665022006 | |
parent | bc5c998232d9d1e8af1ba7c6b93a032d1c15d9fe (diff) | |
download | gcc-101bf67910f8ed1983bfe57d8a72493de97de118.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117817 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | libjava/ChangeLog | 11 | ||||
-rw-r--r-- | libjava/testsuite/libjava.jvmti/natevents.cc | 34 |
2 files changed, 27 insertions, 18 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog index ababe76515c..98d4c41a90f 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,14 @@ +2006-10-16 Geoffrey Keating <geoffk@apple.com> + + * 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 <keiths@redhat.com> * 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 d5720bb648c..2945e233bd2 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); } |