From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26388 invoked by alias); 17 Nov 2011 20:32:37 -0000 Received: (qmail 26379 invoked by uid 22791); 17 Nov 2011 20:32:37 -0000 X-SWARE-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BAYES_00,FROM_12LTRDOM X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 17 Nov 2011 20:32:24 +0000 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1RR8dD-0001Oy-C8 from Maciej_Rozycki@mentor.com for gdb-patches@sourceware.org; Thu, 17 Nov 2011 12:32:23 -0800 Received: from SVR-IES-FEM-01.mgc.mentorg.com ([137.202.0.104]) by SVR-ORW-EXC-10.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Thu, 17 Nov 2011 12:29:50 -0800 Received: from [172.30.5.180] (137.202.0.76) by SVR-IES-FEM-01.mgc.mentorg.com (137.202.0.104) with Microsoft SMTP Server id 14.1.289.1; Thu, 17 Nov 2011 20:32:21 +0000 Date: Thu, 17 Nov 2011 20:32:00 -0000 From: "Maciej W. Rozycki" To: Subject: [PATCH] MIPS/gdbserver: Fix $f9 access Message-ID: User-Agent: Alpine 1.10 (DEB 962 2008-03-14) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" 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: 2011-11/txt/msg00483.txt.bz2 Hi, The following change fixes a problem where $f8 is accessed whenever $f9 is requested. The bug has always been there, since MIPS support was added back in 2002. I guess nobody uses gdbserver with MIPS FPU, oh well... OK to apply? 2011-11-17 Maciej W. Rozycki gdb/gdbserver/ * linux-mips-low.c (mips_regmap): Correct the index of $f9. Maciej gdb-gdbserver-linux-mips-fpr-fix.diff Index: gdb-fsf-trunk-quilt/gdb/gdbserver/linux-mips-low.c =================================================================== --- gdb-fsf-trunk-quilt.orig/gdb/gdbserver/linux-mips-low.c 2011-11-17 20:10:51.000000000 +0000 +++ gdb-fsf-trunk-quilt/gdb/gdbserver/linux-mips-low.c 2011-11-17 20:11:44.995624756 +0000 @@ -63,7 +63,7 @@ static int mips_regmap[] = { FPR_BASE, FPR_BASE + 1, FPR_BASE + 2, FPR_BASE + 3, FPR_BASE + 4, FPR_BASE + 5, FPR_BASE + 6, FPR_BASE + 7, - FPR_BASE + 8, FPR_BASE + 8, FPR_BASE + 10, FPR_BASE + 11, + FPR_BASE + 8, FPR_BASE + 9, FPR_BASE + 10, FPR_BASE + 11, FPR_BASE + 12, FPR_BASE + 13, FPR_BASE + 14, FPR_BASE + 15, FPR_BASE + 16, FPR_BASE + 17, FPR_BASE + 18, FPR_BASE + 19, FPR_BASE + 20, FPR_BASE + 21, FPR_BASE + 22, FPR_BASE + 23,