From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17679 invoked by alias); 18 Nov 2006 17:35:14 -0000 Received: (qmail 17670 invoked by uid 22791); 18 Nov 2006 17:35:13 -0000 X-Spam-Check-By: sourceware.org Received: from smtp-vbr7.xs4all.nl (HELO smtp-vbr7.xs4all.nl) (194.109.24.27) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 18 Nov 2006 17:35:05 +0000 Received: from webmail.xs4all.nl (dovemail7.xs4all.nl [194.109.26.9]) by smtp-vbr7.xs4all.nl (8.13.8/8.13.8) with ESMTP id kAIHYMtY004199; Sat, 18 Nov 2006 18:34:26 +0100 (CET) (envelope-from mark.kettenis@xs4all.nl) Received: from 82.92.89.47 (SquirrelMail authenticated user sibelius) by webmail.xs4all.nl with HTTP; Sat, 18 Nov 2006 18:34:30 +0100 (CET) Message-ID: <23022.82.92.89.47.1163871270.squirrel@webmail.xs4all.nl> In-Reply-To: <200611180009.kAI09xif013603@d12av02.megacenter.de.ibm.com> References: <200611180009.kAI09xif013603@d12av02.megacenter.de.ibm.com> Date: Sat, 18 Nov 2006 17:35:00 -0000 Subject: Re: [RFA][3/5] New port: Cell BE SPU (the port itself) From: "Mark Kettenis" To: "Ulrich Weigand" Cc: "Mark Kettenis" , "Daniel Jacobowitz" , gdb-patches@sourceware.org User-Agent: SquirrelMail/1.4.8 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-11/txt/msg00201.txt.bz2 > 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.