This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[RFA] JVMTI events test tweak


Hi,

This patch removes another platform-dependent problem with the events test. Same deal as all the other callbacks.

Ok?
Keith

ChangeLog
2007-01-15  Keith Seitz  <keiths@redhat.com>

        * testsuite/libjava.jvmti/natevents.cc (FieldModificationCB): Use
        %#llx instead of %d for new_value.
        * testsuite/libjava.jvmti/events.out: Update expected output.
        * testsuite/libjava.jvmti/events.jar: Regenerate.
Index: testsuite/libjava.jvmti/natevents.cc
===================================================================
--- testsuite/libjava.jvmti/natevents.cc	(revision 120822)
+++ testsuite/libjava.jvmti/natevents.cc	(working copy)
@@ -200,7 +200,7 @@
   printf (" field_klass=%#llx object=%#llx field=%#llx signature_type=%c",
 	  (unsigned long long) field_klass, (unsigned long long) object,
 	  (unsigned long long) field, signature_type);
-  printf (" new_value=%d\n", (int) new_value.i);
+  printf (" new_value=%#llx\n", new_value.l);
 }
 
 static void
Index: testsuite/libjava.jvmti/events.out
===================================================================
--- testsuite/libjava.jvmti/events.out	(revision 120822)
+++ testsuite/libjava.jvmti/events.out	(working copy)
@@ -41,7 +41,7 @@
 FramePopCB jni_env=0x1 thread=0x2 method=0x3 was_pooped_by_exception=1
 BreakpointCB  jni_env=0x1 thread=0x2 method=0x3 location=0x4
 FieldAccessCB jni_env=0x1 thread=0x2 method=0x3 location=0x4 field_klass=0x5 object=0x6 field=0x7
-FieldModificationCB  jni_env=0x1 thread=0x2 method=0x3 location=0x4 field_klass=0x5 object=0x6 field=0x7 signature_type=8 new_value=9
+FieldModificationCB  jni_env=0x1 thread=0x2 method=0x3 location=0x4 field_klass=0x5 object=0x6 field=0x7 signature_type=8 new_value=0x9
 MethodEntryCB jni_env=0x1 thread=0x2 method=0x3
 MethodExitCB jni_env=0x1 thread=0x2 method=0x3 was_popped_by_exception=1 return_value=5
 NativeMethodBindCB jni_env=0x1 thread=0x2 method=0x3 address=0x4 new_address_ptr=0x5

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]