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

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


--pvezYHf7grwyp3Bc
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Guilhem Lavaux (guilhem@kaffe.org) wrote:

> Could you try the attached patch file ? This problem is already known=20
> 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
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> 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
> =20
> +/* 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

--=20
Greg Wooledge                  |   "Truth belongs to everybody."
greg@wooledge.org              |    - The Red Hot Chili Peppers
http://wooledge.org/~greg/     |

--pvezYHf7grwyp3Bc
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (OpenBSD)

iD8DBQE/R2mvkAkqAYpL9t8RAgjgAJ0bWtOXBM6DZpt50cm1qy5ErhVPNACeJJQ8
7DWbT2mTk/yzHtxXctEDYkw=
=4FOu
-----END PGP SIGNATURE-----

--pvezYHf7grwyp3Bc--