From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4086 invoked by alias); 4 Jan 2013 21:07:26 -0000 Received: (qmail 4076 invoked by uid 22791); 4 Jan 2013 21:07:24 -0000 X-SWARE-Spam-Status: No, hits=-7.6 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_SPAMHAUS_DROP,KHOP_THREADED,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 04 Jan 2013 21:07:04 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r04L73n8010490 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 4 Jan 2013 16:07:03 -0500 Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r04L71dp015194; Fri, 4 Jan 2013 16:07:02 -0500 Message-ID: <50E74475.5070504@redhat.com> Date: Fri, 04 Jan 2013 21:07:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: Joel Brobecker CC: gdb-patches@sourceware.org Subject: Re: [RFA 1/2] Allow powerpc-*-lynxos* GDBserver to send register map via XML... References: <1355744327-19557-1-git-send-email-brobecker@adacore.com> In-Reply-To: <1355744327-19557-1-git-send-email-brobecker@adacore.com> Content-Type: text/plain; charset=ISO-8859-1 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: 2013-01/txt/msg00077.txt.bz2 On 12/17/2012 11:38 AM, Joel Brobecker wrote: > ... back to GDB. The transfer occurs when GDB sends the > 'qXfer:features:read:target.xml' packet. This allows us to make > sure that GDB and GDBserver use the same register numbering. > This will be important on Lynx 178, where GDB selects the rs6000:6000 > architecture by default instead of the powerpc:common architecture. > > gdb/gdbserver/ChangeLog: > > * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles. > > Tested on ppc-lynx5. OK to commit? Sure. Note however, that xml descriptions can also send the OSABI. So if we had new xml descriptions that did something like: Lynx178 (or whatever it is) and send _that_, then GDB sets the OSABI from the target, even if you attach without a binary. This is the modern version of the default OSABI setting in the end of gdb/configure.tgt, which I now notice doesn't have a Lynx setting, so ignore I mentioned it. :-) -- Pedro Alves