harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dlyd...@apache.org
Subject svn commit: r418268 - /incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jvm/src/classfile.c
Date Fri, 30 Jun 2006 13:35:15 GMT
Author: dlydick
Date: Fri Jun 30 06:35:14 2006
New Revision: 418268

URL: http://svn.apache.org/viewvc?rev=418268&view=rev
Log:
Added display of attribute via cfmsgs_atrmsg() after loading
a file, field, and method attribute.

Modified:
    incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jvm/src/classfile.c

Modified: incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jvm/src/classfile.c
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jvm/src/classfile.c?rev=418268&r1=418267&r2=418268&view=diff
==============================================================================
--- incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jvm/src/classfile.c
(original)
+++ incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jvm/src/classfile.c
Fri Jun 30 06:35:14 2006
@@ -1140,7 +1140,16 @@
                             pcfs,
                             &pcfs->fields[fldidx]->attributes[atridx],
                             (attribute_info *) pfbytes);
-
+#if 1
+                    if (rnull != pfbytes)
+                    {
+                        cfmsgs_atrmsg(arch_function_name,
+                                      pcfs,
+                                      pcfs
+                                        ->fields[fldidx]
+                                          ->attributes[atridx]);
+                    }
+#endif
                     LOAD_SYSCALL_FAILURE((rnull == pfbytes),
                                          "load field attribute",
                                          rnull,
@@ -1304,6 +1313,16 @@
                             pcfs,
                             &pcfs->methods[mthidx]->attributes[atridx],
                             (attribute_info *) pmbytes);
+#if 1
+                    if (rnull != pmbytes)
+                    {
+                        cfmsgs_atrmsg(arch_function_name,
+                                      pcfs,
+                                      pcfs
+                                        ->methods[mthidx]
+                                          ->attributes[atridx]);
+                    }
+#endif
 
                     LOAD_SYSCALL_FAILURE((rnull == pmbytes),
                                          "verify member attribute",
@@ -1420,11 +1439,17 @@
              */
 
             pcbytes =
-                cfattrib_load_attribute(
-                    pcfs,
-                    &pcfs->attributes[atridx],
-                    (attribute_info *) pcbytes);
-
+                cfattrib_load_attribute(pcfs,
+                                        &pcfs->attributes[atridx],
+                                        (attribute_info *) pcbytes);
+#if 1
+            if (rnull != pcbytes)
+            {
+                cfmsgs_atrmsg(arch_function_name,
+                              pcfs,
+                              pcfs->attributes[atridx]);
+            }
+#endif
             LOAD_SYSCALL_FAILURE((rnull == pcbytes),
                                  "verify file attribute",
                                  rnull,



Mime
View raw message