compiling kaffe debug

Godmar Back kaffe@rufus.w3.org
Sun, 19 Jul 1998 21:05:43 -0600 (MDT)


Andrew, please try applying the following patch to jit-sparc.def:

	- Godmar


Index: jit-sparc.def
===================================================================
RCS file: /home/cvspublic/kaffe/config/sparc/jit-sparc.def,v
retrieving revision 1.4
diff -u -r1.4 jit-sparc.def
--- jit-sparc.def       1998/06/19 01:42:20     1.4
+++ jit-sparc.def       1998/07/20 03:04:36
@@ -8,12 +8,11 @@
  * of this file. 
  */
 
-#undef DEBUG
-
 #ifdef DEBUG
-#define        debug(x)        printf##x
+int jit_debug;
+#define debug(x)        (jit_debug ? dprintf("%x:\t", CODEPC), dprintf x : 0)
 #else
-#define        debug(x)
+#define debug(x)
 #endif
 
 #include "classMethod.h"