From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21993 invoked by alias); 30 Oct 2004 15:57:01 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 21985 invoked from network); 30 Oct 2004 15:57:00 -0000 Received: from unknown (HELO localhost.redhat.com) (24.42.65.225) by sourceware.org with SMTP; 30 Oct 2004 15:57:00 -0000 Received: from [127.0.0.1] (localhost.localdomain [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id CC25A129D8C; Sat, 30 Oct 2004 10:56:54 -0400 (EDT) Message-ID: <4183ABB3.7080104@gnu.org> Date: Sat, 30 Oct 2004 15:57:00 -0000 From: Andrew Cagney User-Agent: Mozilla Thunderbird 0.8 (X11/20041020) MIME-Version: 1.0 To: gdb-patches@sources.redhat.com Subject: [commit] Eliminate a deprecated_read_register_gen call Content-Type: multipart/mixed; boundary="------------040206020507020007060807" X-SW-Source: 2004-10/txt/msg00494.txt.bz2 This is a multi-part message in MIME format. --------------040206020507020007060807 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 24 FYI, Committed, Andrew --------------040206020507020007060807 Content-Type: text/plain; name="diffs" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="diffs" Content-length: 823 2004-10-30 Andrew Cagney * mips-tdep.c (read_signed_register): Use regcache_cooked_read_signed. Index: mips-tdep.c =================================================================== RCS file: /cvs/src/src/gdb/mips-tdep.c,v retrieving revision 1.339 diff -p -u -r1.339 mips-tdep.c --- mips-tdep.c 30 Oct 2004 14:31:19 -0000 1.339 +++ mips-tdep.c 30 Oct 2004 15:54:43 -0000 @@ -222,10 +222,9 @@ unmake_mips16_addr (CORE_ADDR addr) static LONGEST read_signed_register (int regnum) { - void *buf = alloca (register_size (current_gdbarch, regnum)); - deprecated_read_register_gen (regnum, buf); - return (extract_signed_integer - (buf, register_size (current_gdbarch, regnum))); + LONGEST val; + regcache_cooked_read_signed (current_regcache, regnum, &val); + return val; } static LONGEST --------------040206020507020007060807--