From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16017 invoked by alias); 13 Oct 2004 21:46:28 -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 15998 invoked from network); 13 Oct 2004 21:46:27 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 13 Oct 2004 21:46:27 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.10) with ESMTP id i9DLkRpi023604 for ; Wed, 13 Oct 2004 17:46:27 -0400 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i9DLkRr18458 for ; Wed, 13 Oct 2004 17:46:27 -0400 Received: from localhost.localdomain (vpn50-43.rdu.redhat.com [172.16.50.43]) by pobox.corp.redhat.com (8.12.8/8.12.8) with ESMTP id i9DLkQ2m022668 for ; Wed, 13 Oct 2004 17:46:26 -0400 Received: from saguaro (saguaro.lan [192.168.64.2]) by localhost.localdomain (8.12.11/8.12.10) with SMTP id i9DLkLfL007007 for ; Wed, 13 Oct 2004 14:46:21 -0700 Date: Wed, 13 Oct 2004 21:46:00 -0000 From: Kevin Buettner To: gdb-patches@sources.redhat.com Subject: [PATCH] ia64-linux-nat.c: Eliminate references to deprecated_registers[] Message-Id: <20041013144620.63f6c8a8@saguaro> Organization: Red Hat Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-SW-Source: 2004-10/txt/msg00237.txt.bz2 I've just committed the change below. Tested on native ia64-unknown-linux-gnu. * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace references to deprecated_registers[] with equivalent code. Index: ia64-linux-nat.c =================================================================== RCS file: /cvs/src/src/gdb/ia64-linux-nat.c,v retrieving revision 1.25 diff -u -p -r1.25 ia64-linux-nat.c --- ia64-linux-nat.c 8 Oct 2004 17:30:47 -0000 1.25 +++ ia64-linux-nat.c 13 Oct 2004 21:36:53 -0000 @@ -418,8 +418,7 @@ fill_gregset (gregset_t *gregsetp, int r #define COPY_REG(_idx_,_regi_) \ if ((regno == -1) || regno == _regi_) \ - memcpy (regp + _idx_, &deprecated_registers[DEPRECATED_REGISTER_BYTE (_regi_)], \ - register_size (current_gdbarch, _regi_)) + regcache_raw_collect (current_regcache, _regi_, regp + _idx_) for (regi = IA64_GR0_REGNUM; regi <= IA64_GR31_REGNUM; regi++) { @@ -476,17 +475,12 @@ void fill_fpregset (fpregset_t *fpregsetp, int regno) { int regi; - char *to; - char *from; for (regi = IA64_FR0_REGNUM; regi <= IA64_FR127_REGNUM; regi++) { if ((regno == -1) || (regno == regi)) - { - from = (char *) &deprecated_registers[DEPRECATED_REGISTER_BYTE (regi)]; - to = (char *) &((*fpregsetp)[regi - IA64_FR0_REGNUM]); - memcpy (to, from, register_size (current_gdbarch, regi)); - } + regcache_raw_collect (current_regcache, regi, + &((*fpregsetp)[regi - IA64_FR0_REGNUM])); } }