From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MQ6oo-00086o-13 for qemu-devel@nongnu.org; Sun, 12 Jul 2009 17:42:46 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MQ6on-00086W-IV for qemu-devel@nongnu.org; Sun, 12 Jul 2009 17:42:45 -0400 Received: from [199.232.76.173] (port=35684 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MQ6on-00086T-C5 for qemu-devel@nongnu.org; Sun, 12 Jul 2009 17:42:45 -0400 Received: from mx20.gnu.org ([199.232.41.8]:3706) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MQ6om-0004Tg-QK for qemu-devel@nongnu.org; Sun, 12 Jul 2009 17:42:44 -0400 Received: from hall.aurel32.net ([88.191.82.174]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MQ6om-0000qI-5E for qemu-devel@nongnu.org; Sun, 12 Jul 2009 17:42:44 -0400 Date: Sun, 12 Jul 2009 23:42:38 +0200 From: Aurelien Jarno Subject: Re: [Qemu-devel] [PATCH] gdb-xml: fix hacks in powerpc register numbering Message-ID: <20090712214238.GC28418@volta.aurel32.net> References: <1244167348-806-1-git-send-email-froydnj@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <1244167348-806-1-git-send-email-froydnj@codesourcery.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Nathan Froyd Cc: qemu-devel@nongnu.org On Thu, Jun 04, 2009 at 07:02:28PM -0700, Nathan Froyd wrote: > The powerpc xml files contained a hack--an empty, non-existent > register--for getting the register numbers to line up for > newer (XML-aware) and older (non-XML-aware) GDB. While this hack worked > in some cases, it didn't work in all cases, notably when the user used > `finish' or `continue': GDB would attempt to read the non-existent > register and QEMU would complain. > > This patch fixes things up properly. Instead of inserting a fake > register, we explicitly declare the floating-point and SPE registers to > start at 71. This action accomplishes the same thing as the nasty hack, > except that now GDB never tries to fetch the non-existant register 70. Thanks, applied. -- Aurelien Jarno GPG: 1024D/F1BCDB73 aurelien@aurel32.net http://www.aurel32.net