compiling kaffe debug and GC probs

Andrew Man-Hon Lau amlau at MIT.EDU
Mon Jul 20 11:40:14 PDT 1998


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 at mit.edu
http://web.mit.edu/amlau/www
888.978.8495


More information about the kaffe mailing list