]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
In libobjc/: 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
authorNicola Pero <nicola.pero@meta-innovation.com>
Tue, 21 Dec 2010 14:56:18 +0000 (14:56 +0000)
committerNicola Pero <nicola@gcc.gnu.org>
Tue, 21 Dec 2010 14:56:18 +0000 (14:56 +0000)
In libobjc/:
2010-12-21  Nicola Pero  <nicola.pero@meta-innovation.com>

* objc-private/common.h: When DEBUG is defined, include <stdio.h>.
Updated comments.
* init.c (__objc_tree_insert_class): Use %p, not %x, when printing
a pointer using DEBUG_PRINTF.

From-SVN: r168119

libobjc/ChangeLog
libobjc/init.c
libobjc/objc-private/common.h

index 83387eef6796f390c45306bc877bfebd91c2e182..56bfe2e9afbc88e412e7a04dc56c895698cf9fcc 100644 (file)
@@ -1,3 +1,10 @@
+2010-12-21  Nicola Pero  <nicola.pero@meta-innovation.com>
+
+       * objc-private/common.h: When DEBUG is defined, include <stdio.h>.
+       Updated comments.
+       * init.c (__objc_tree_insert_class): Use %p, not %x, when printing
+       a pointer using DEBUG_PRINTF.
+       
 2010-12-21  Nicola Pero  <nicola.pero@meta-innovation.com>
 
        PR libobjc/45953
index 0e0d372adad699c29fb42ec628aed2657e2dd148..3c64f5bb7ed9134e09a4f14a81620aa0e98bfc3e 100644 (file)
@@ -209,7 +209,7 @@ create_tree_of_subclasses_inherited_from (Class bottom_class, Class upper)
 static objc_class_tree *
 __objc_tree_insert_class (objc_class_tree *tree, Class class)
 {
-  DEBUG_PRINTF ("__objc_tree_insert_class: tree = %x, class = %s\n",
+  DEBUG_PRINTF ("__objc_tree_insert_class: tree = %p, class = %s\n",
                tree, class->name);
 
   if (tree == NULL)
index cbb335b8f83d3fd6fecbbaa5fbf46810611451d9..4f4ec5cd0772ed2c92d63a9255f44f1701b70d8f 100644 (file)
@@ -33,7 +33,14 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
    being included by an external file.  */
 #define GNU_LIBOBJC_COMPILING_LIBOBJC_ITSELF 1
 
+/* When debugging libobjc, add
+
+   #define DEBUG 1
+
+   at the very beginning of a file in libobjc (before including this file) to turn
+   on DEBUG_PRINTF().  */
 #ifdef DEBUG
+#include <stdio.h>
 #define DEBUG_PRINTF(format, args...) printf (format, ## args)
 #else
 #define DEBUG_PRINTF(format, args...)