Re: [RFA][3/5] New port: Cell BE SPU (the port itself)

Mark Kettenis
2006-11-18T17:35:14Z

> I've tried but failed to make that work. The problem is that both
> ppc-linux-nat.c and spu-linux-nat.c are based on inf-ptrace.c, and
> it is currently impossible to register two targets resulting from
> inf_ptrace_create at the same time, due to the ptrace_ops_hack.

Duh. Well, I guess we need to fix that then.

> Appended below is the code I'm currently using. It requires building
> a native powerpc64 target with --enable-targets=spu (which is necessary
> anyway to get spu BFD support, and now also triggers inclusion of
> both spu-linux-nat.c on the host side and spu-tdep.c on the target
> side).

Does this work as well as your previous diff? I like this much better
and as far as I am concerned this can go in if you fix one minor nit:

> gdb-head/gdb/config/powerpc/ppc64-linux-cell.mh
> --- gdb-orig/gdb/config/powerpc/ppc64-linux-cell.mh 1970-01-01
> 01:00:00.000000000 +0100
> +++ gdb-head/gdb/config/powerpc/ppc64-linux-cell.mh 2006-11-16
> 04:25:21.000000000 +0100
> @@ -0,0 +1,18 @@
> +# Host: Cell BE (PowerPC64 + SPU), running Linux
> +
> +XM_CLIBS=

Please get rid of this XM_CLIBS setting. The same for linux-cell.mh.