[kaffe] CVS kaffe (dalibor): Only use jit_debug if both TRANSLATOR and KAFFEVM_DEBUG are defined
Kaffe CVS
cvs-commits at kaffe.org
Fri Jul 9 00:27:55 PDT 2004
PatchSet 4907
Date: 2004/07/08 09:04:54
Author: dalibor
Branch: HEAD
Tag: (none)
Log:
Only use jit_debug if both TRANSLATOR and KAFFEVM_DEBUG are defined
2004-07-08 Dalibor Topic <robilad at kaffe.org>
Yoshiharu Oba <ooba at gk.avkk.yamaha.co.jp>
* kaffe/kaffevm/debug.c:
Only use jit_debug if both TRANSLATOR and
KAFFEVM_DEBUG are defined. Fixes link errors on
mipsel-linux.
Members:
ChangeLog:1.2473->1.2474
kaffe/kaffevm/debug.c:1.53->1.54
Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.2473 kaffe/ChangeLog:1.2474
--- kaffe/ChangeLog:1.2473 Wed Jul 7 22:15:02 2004
+++ kaffe/ChangeLog Thu Jul 8 09:04:54 2004
@@ -1,4 +1,12 @@
2004-07-08 Dalibor Topic <robilad at kaffe.org>
+ Yoshiharu Oba <ooba at gk.avkk.yamaha.co.jp>
+
+ * kaffe/kaffevm/debug.c:
+ Only use jit_debug if both TRANSLATOR and
+ KAFFEVM_DEBUG are defined. Fixes link errors on
+ mipsel-linux.
+
+2004-07-08 Dalibor Topic <robilad at kaffe.org>
* config/mips/atomicity.h:
New file, taken from glibc 2.3.2.
Index: kaffe/kaffe/kaffevm/debug.c
diff -u kaffe/kaffe/kaffevm/debug.c:1.53 kaffe/kaffe/kaffevm/debug.c:1.54
--- kaffe/kaffe/kaffevm/debug.c:1.53 Mon Jul 5 16:40:34 2004
+++ kaffe/kaffe/kaffevm/debug.c Thu Jul 8 09:04:56 2004
@@ -37,9 +37,9 @@
/* Default debugging mask to use (if debug is enabled) */
#define DEFAULT_DEBUG_MASK DBG_NONE
-#if defined(TRANSLATOR)
+#if defined(TRANSLATOR) && defined(KAFFE_VMDEBUG)
extern int jit_debug;
-#endif /* defined(TRANSLATOR) */
+#endif /* defined(TRANSLATOR) && defined(KAFFE_VMDEBUG) */
static char *debugBuffer;
static size_t bufferBegin = 0;
@@ -296,12 +296,12 @@
}
if (kaffevmDebugMask & DBG_JIT) {
-#if defined(TRANSLATOR)
+#if defined(TRANSLATOR) && defined(KAFFE_VMDEBUG)
jit_debug = 1;
-#else
+#else /* !(defined(TRANSLATOR) && defined(KAFFE_VMDEBUG)) */
dprintf(
"You cannot debug the JIT in interpreter mode \n");
-#endif
+#endif /* defined(TRANSLATOR) && defined(KAFFE_VMDEBUG) */
}
free(mask_str);
@@ -350,7 +350,7 @@
if (getenv("JIT_DEBUG"))
jit_debug = 1;
}
-#endif
+#endif /* defined(TRANSLATOR) && defined(KAFFE_VMDEBUG) */
atexit(debugExitHook);
}
More information about the kaffe
mailing list