[kaffe] jthread.c:420: `sc' undeclared

Greg Wooledge greg at wooledge.org
Sat Aug 23 06:20:04 PDT 2003


Guilhem Lavaux (guilhem at kaffe.org) wrote:

> Could you try the attached patch file ? This problem is already known 
> and we need to rewrite
> this part of profiling. However for the moment it is not done. :(

Yes, it compiles with this.

> Index: config/i386/openbsd2/md.h
> ===================================================================
> RCS file: /cvs/kaffe/kaffe/config/i386/openbsd2/md.h,v
> retrieving revision 1.2
> diff -u -r1.2 md.h
> --- config/i386/openbsd2/md.h	1 Apr 1998 04:18:48 -0000	1.2
> +++ config/i386/openbsd2/md.h	23 Aug 2003 08:00:39 -0000
> @@ -21,6 +21,12 @@
>  #undef SP_OFFSET
>  #define SP_OFFSET 2
>  
> +/* Define signal context macros for xprofiling */
> +#define SIGNAL_ARGS(sig, sc) int sig, int __code, struct sigcontext *sc
> +#define SIGNAL_CONTEXT_POINTER(scp) struct sigcontext *scp
> +#define GET_SIGNAL_CONTEXT_POINTER(sc) (sc)
> +#define SIGNAL_PC(scp) (scp)->sc_pc
> +
>  #if defined(TRANSLATOR)
>  #include "jit-md.h"
>  #endif

-- 
Greg Wooledge                  |   "Truth belongs to everybody."
greg at wooledge.org              |    - The Red Hot Chili Peppers
http://wooledge.org/~greg/     |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://kaffe.org/pipermail/kaffe/attachments/20030823/8141eb0f/attachment-0002.pgp 


More information about the kaffe mailing list