From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4027 invoked by alias); 12 Dec 2007 16:26:28 -0000 Received: (qmail 4015 invoked by uid 22791); 12 Dec 2007 16:26:26 -0000 X-Spam-Check-By: sourceware.org Received: from dmz.mips-uk.com (HELO dmz.mips-uk.com) (194.74.144.194) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 12 Dec 2007 16:26:20 +0000 Received: from internal-mx1 ([192.168.192.240] helo=ukservices1.mips.com) by dmz.mips-uk.com with esmtp (Exim 3.35 #1 (Debian)) id 1J2UPZ-0002Eh-00; Wed, 12 Dec 2007 16:26:17 +0000 Received: from perivale.mips.com ([192.168.192.200]) by ukservices1.mips.com with esmtp (Exim 3.36 #1 (Debian)) id 1J2UPV-0006yP-00; Wed, 12 Dec 2007 16:26:13 +0000 Received: from macro (helo=localhost) by perivale.mips.com with local-esmtp (Exim 4.63) (envelope-from ) id 1J2UPV-00027H-Cl; Wed, 12 Dec 2007 16:26:13 +0000 Date: Wed, 12 Dec 2007 16:34:00 -0000 From: "Maciej W. Rozycki" To: gdb-patches@sourceware.org cc: Nigel Stephens , "Maciej W. Rozycki" Subject: remote-mips.c: Build fix Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-MIPS-Technologies-UK-MailScanner: Found to be clean X-MIPS-Technologies-UK-MailScanner-From: macro@mips.com 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-12/txt/msg00164.txt.bz2 Hello, The deprecated_register_valid[] array has been removed and regcache_set_valid_p() has to be used instead. Following is a fix that makes remote-mips.c build again. 2007-12-12 Nigel Stephens * remote-mips.c (mips_load): Use regcache_set_valid_p() instead of setting deprecated_register_valid array directly. OK to apply? Maciej 14440-5.diff Index: binutils-quilt/src/gdb/remote-mips.c =================================================================== --- binutils-quilt.orig/src/gdb/remote-mips.c 2007-12-12 16:08:14.000000000 +0000 +++ binutils-quilt/src/gdb/remote-mips.c 2007-12-12 16:08:26.000000000 +0000 @@ -3274,7 +3274,8 @@ /* Work around problem where PMON monitor updates the PC after a load to a different value than GDB thinks it has. The following ensures that the write_pc() WILL update the PC value: */ - deprecated_register_valid[gdbarch_pc_regnum (current_gdbarch)] = 0; + regcache_set_valid_p (get_current_regcache (), + gdbarch_pc_regnum (current_gdbarch), 0); } if (exec_bfd) write_pc (bfd_get_start_address (exec_bfd));