From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12996 invoked by alias); 22 Feb 2007 15:30:17 -0000 Received: (qmail 12984 invoked by uid 22791); 22 Feb 2007 15:30:16 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Thu, 22 Feb 2007 15:30:08 +0000 Received: from dsl093-172-095.pit1.dsl.speakeasy.net ([66.93.172.95] helo=caradoc.them.org) by nevyn.them.org with esmtp (Exim 4.63) (envelope-from ) id 1HKFtV-0001GB-Rl; Thu, 22 Feb 2007 10:30:05 -0500 Received: from drow by caradoc.them.org with local (Exim 4.63) (envelope-from ) id 1HKFtV-0001CD-C5; Thu, 22 Feb 2007 10:30:05 -0500 Date: Thu, 22 Feb 2007 15:30:00 -0000 From: Daniel Jacobowitz To: Ulrich Weigand Cc: Markus Deuling , GDB Patches Subject: Re: Patch: Add arch_string to spu-low.c Message-ID: <20070222153005.GA4563@caradoc.them.org> Mail-Followup-To: Ulrich Weigand , Markus Deuling , GDB Patches References: <20070222145603.GB2036@caradoc.them.org> <200702221521.l1MFLSBQ013672@d12av02.megacenter.de.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200702221521.l1MFLSBQ013672@d12av02.megacenter.de.ibm.com> User-Agent: Mutt/1.5.13 (2006-08-11) X-IsSubscribed: yes 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/msg00268.txt.bz2 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". -- Daniel Jacobowitz CodeSourcery