From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15761 invoked by alias); 22 Feb 2007 15:34:22 -0000 Received: (qmail 15753 invoked by uid 22791); 22 Feb 2007 15:34:22 -0000 X-Spam-Check-By: sourceware.org Received: from mtagate7.de.ibm.com (HELO mtagate7.de.ibm.com) (195.212.29.156) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 22 Feb 2007 15:34:11 +0000 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate7.de.ibm.com (8.13.8/8.13.8) with ESMTP id l1MFY9h5236738 for ; Thu, 22 Feb 2007 15:34:09 GMT Received: from d12av02.megacenter.de.ibm.com (d12av02.megacenter.de.ibm.com [9.149.165.228]) by d12nrmr1607.megacenter.de.ibm.com (8.13.8/8.13.8/NCO v8.2) with ESMTP id l1MFY8Z81585234 for ; Thu, 22 Feb 2007 16:34:08 +0100 Received: from d12av02.megacenter.de.ibm.com (loopback [127.0.0.1]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id l1MFY8v4001303 for ; Thu, 22 Feb 2007 16:34:08 +0100 Received: from tuxmaker.boeblingen.de.ibm.com (tuxmaker.boeblingen.de.ibm.com [9.152.85.9]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.12.11) with SMTP id l1MFY8Rh001300; Thu, 22 Feb 2007 16:34:08 +0100 Message-Id: <200702221534.l1MFY8Rh001300@d12av02.megacenter.de.ibm.com> Received: by tuxmaker.boeblingen.de.ibm.com (sSMTP sendmail emulation); Thu, 22 Feb 2007 16:34:08 +0100 Subject: Re: Patch: Add arch_string to spu-low.c To: drow@false.org (Daniel Jacobowitz) Date: Thu, 22 Feb 2007 15:34:00 -0000 From: "Ulrich Weigand" Cc: deuling@de.ibm.com (Markus Deuling), gdb-patches@sourceware.org (GDB Patches) In-Reply-To: <20070222153005.GA4563@caradoc.them.org> from "Daniel Jacobowitz" at Feb 22, 2007 10:30:05 AM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-02/txt/msg00269.txt.bz2 Daniel Jakowowitz wrote: > On Thu, Feb 22, 2007 at 04:21:28PM +0100, Ulrich Weigand wrote: > > Daniel Jakowobitz wrote: > > > > > OK if it's OK with Ulrich (do you always want "SPU:256K"? Just "spu" > > > should work too). > > > > Can you elaborate on what effect that change would have? Does it > > then try to automatically select the subarchitecture? (We just > > have the one right now anyway ...) > > It will select the default subarchitecture - what may be more > interesting is that it won't complain if the user or binary file has > selected a different subarchitecture. This is a bit tricky; see > choose_architecture_for_target in arch-utils.c, particularly the > the_default check. > > So suppose you have in the future an spu:512K, and gdbserver doesn't > need to know the difference, but it's recorded in the ELF file. GDB > would object if gdbserver reported "I have an spu:256K". Ah, thanks for the explanation. I agree that "spu" would be the better choice then. Bye, Ulrich -- Dr. Ulrich Weigand GNU Toolchain for Linux on System z and Cell BE Ulrich.Weigand@de.ibm.com