From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12569 invoked by alias); 6 Dec 2011 22:03:24 -0000 Received: (qmail 12554 invoked by uid 22791); 6 Dec 2011 22:03:22 -0000 X-SWARE-Spam-Status: No, hits=-1.6 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; Tue, 06 Dec 2011 22:03:08 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1RY36R-0005ud-6f from Maciej_Rozycki@mentor.com for gdb-patches@sourceware.org; Tue, 06 Dec 2011 14:03:07 -0800 Received: from SVR-IES-FEM-01.mgc.mentorg.com ([137.202.0.104]) by svr-orw-fem-01.mgc.mentorg.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Tue, 6 Dec 2011 14:03:06 -0800 Received: from [172.30.6.216] (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; Tue, 6 Dec 2011 22:03:04 +0000 Date: Tue, 06 Dec 2011 22:26:00 -0000 From: "Maciej W. Rozycki" To: Subject: [PATCH] MIPS/Linux: Update the number of pseudo registers too 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-12/txt/msg00206.txt.bz2 Hi, Similarly to the previous general MIPS change (pc_regnum and sp_regnum) the Linux backend needs to update the number of pseudo registers as it adds the "restart" register. No regressions in mips-linux-gnu testing (native and remote). OK to apply? 2011-12-06 Maciej W. Rozycki gdb/ * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs too. Maciej gdb-mips-num-pseudo-regs.diff Index: gdb-fsf-trunk-quilt/gdb/mips-linux-tdep.c =================================================================== --- gdb-fsf-trunk-quilt.orig/gdb/mips-linux-tdep.c 2011-11-24 00:54:31.955605130 +0000 +++ gdb-fsf-trunk-quilt/gdb/mips-linux-tdep.c 2011-11-24 00:55:54.545604049 +0000 @@ -1325,6 +1325,7 @@ mips_linux_init_abi (struct gdbarch_info described or not). */ gdb_assert (gdbarch_num_regs (gdbarch) <= MIPS_RESTART_REGNUM); set_gdbarch_num_regs (gdbarch, MIPS_RESTART_REGNUM + 1); + set_gdbarch_num_pseudo_regs (gdbarch, MIPS_RESTART_REGNUM + 1); /* If it's present, then assign it to the reserved number. */ feature = tdesc_find_feature (info.target_desc,