From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22774 invoked by alias); 7 Jun 2003 00:57:14 -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 22744 invoked from network); 7 Jun 2003 00:57:13 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 7 Jun 2003 00:57:13 -0000 Received: from int-mx2.corp.redhat.com (nat-pool-rdu-dmz.redhat.com [172.16.52.200] (may be forged)) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id h570vDH26210 for ; Fri, 6 Jun 2003 20:57:13 -0400 Received: from potter.sfbay.redhat.com (potter.sfbay.redhat.com [172.16.27.15]) by int-mx2.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h570vCT16329 for ; Fri, 6 Jun 2003 20:57:12 -0400 Received: from redhat.com (reddwarf.sfbay.redhat.com [172.16.24.50]) by potter.sfbay.redhat.com (8.11.6/8.11.6) with ESMTP id h570vBw27461; Fri, 6 Jun 2003 17:57:12 -0700 Message-ID: <3EE13867.1E530DE9@redhat.com> Date: Sat, 07 Jun 2003 00:57:00 -0000 From: Michael Snyder Organization: Red Hat, Inc. X-Accept-Language: en MIME-Version: 1.0 To: cagney@redhat.com, gdb-patches@sources.redhat.com Subject: [regcache] raw vs. cooked... Content-Type: multipart/mixed; boundary="------------461D2477CA088FEA9D8F6753" X-SW-Source: 2003-06/txt/msg00252.txt.bz2 This is a multi-part message in MIME format. --------------461D2477CA088FEA9D8F6753 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-length: 180 Andrew, I suspect the test below is not valid for pseudo-registers, since they may not have a location in the reg cache at all. Anyway, the change makes sh4 work again. Michael --------------461D2477CA088FEA9D8F6753 Content-Type: text/plain; charset=us-ascii; name="regcache.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="regcache.diff" Content-length: 1027 Index: regcache.c =================================================================== RCS file: /cvs/src/src/gdb/regcache.c,v retrieving revision 1.82 diff -p -r1.82 regcache.c *** regcache.c 17 May 2003 05:59:58 -0000 1.82 --- regcache.c 7 Jun 2003 00:55:07 -0000 *************** init_regcache_descr (struct gdbarch *gdb *** 235,241 **** /* Sanity check. Confirm that there is agreement between the regcache and the target's redundant REGISTER_BYTE (new targets should not even be defining it). */ ! for (i = 0; i < descr->nr_cooked_registers; i++) { if (REGISTER_BYTE_P ()) gdb_assert (descr->register_offset[i] == REGISTER_BYTE (i)); --- 235,241 ---- /* Sanity check. Confirm that there is agreement between the regcache and the target's redundant REGISTER_BYTE (new targets should not even be defining it). */ ! for (i = 0; i < descr->nr_raw_registers; i++) { if (REGISTER_BYTE_P ()) gdb_assert (descr->register_offset[i] == REGISTER_BYTE (i)); --------------461D2477CA088FEA9D8F6753--