This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA][3/5] New port: Cell BE SPU (the port itself)
- From: "Mark Kettenis" <mark dot kettenis at xs4all dot nl>
- To: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- Cc: "Mark Kettenis" <mark dot kettenis at xs4all dot nl>, "Daniel Jacobowitz" <drow at false dot org>, gdb-patches at sourceware dot org
- Date: Sat, 18 Nov 2006 18:34:30 +0100 (CET)
- Subject: Re: [RFA][3/5] New port: Cell BE SPU (the port itself)
- References: <200611180009.kAI09xif013603@d12av02.megacenter.de.ibm.com>
> 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.