compiling kaffe debug and GC probs

Andrew Man-Hon Lau kaffe@rufus.w3.org
Mon, 20 Jul 1998 14:40:14 EDT


Godmar and Kiyo,

Thanks for the help with the debugging.. Between the 2 ways of debugging this
thing I think I have isolated the problem to the garbage collecting.. I was
wondering if anyone else's GC is causing segfaults and if there is a patch?


Thanks,

andrew lau
> 
> 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"
> 
> 

--
Andrew Lau
amlau@mit.edu
http://web.mit.edu/amlau/www
888.978.8495