From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16119 invoked by alias); 8 Mar 2004 22:02:09 -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 16059 invoked from network); 8 Mar 2004 22:02:06 -0000 Received: from unknown (HELO localhost.redhat.com) (216.129.200.20) by sources.redhat.com with SMTP; 8 Mar 2004 22:02:06 -0000 Received: from gnu.org (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 5F6232B92; Mon, 8 Mar 2004 17:02:00 -0500 (EST) Message-ID: <404CED58.4010205@gnu.org> Date: Mon, 08 Mar 2004 22:02:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-GB; rv:1.4.1) Gecko/20040217 MIME-Version: 1.0 To: gdb-patches@sources.redhat.com Subject: [rfa/ppc] Make registers unsigned Content-Type: multipart/mixed; boundary="------------060502030203060502050409" X-SW-Source: 2004-03.o/txt/msg00176.txt Message-ID: <20040308220200.R_DHzbFzf1AaoKG1W7VJlLglEnvnzjS5kpcgaLcsf-I@z> This is a multi-part message in MIME format. --------------060502030203060502050409 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-length: 284 Hello, As far as I can tell PPC registers are unsigned. At present they are signed and this leads to weird problems such as: (gdb) x/i $sp 0xffff0000: ... error accessing memory at 0xffff0000 (gdb) x/i 0xffff0000 0xffff0000: sc (gdb) the attached changes this. ok, 6.1? Andrew --------------060502030203060502050409 Content-Type: text/plain; name="diffs" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="diffs" Content-length: 781 2004-03-07 Andrew Cagney * rs6000-tdep.c (rs6000_register_virtual_type): Make registers unsigned. Index: rs6000-tdep.c =================================================================== RCS file: /cvs/src/src/gdb/rs6000-tdep.c,v retrieving revision 1.183 diff -u -r1.183 rs6000-tdep.c --- rs6000-tdep.c 2 Mar 2004 02:20:25 -0000 1.183 +++ rs6000-tdep.c 8 Mar 2004 21:56:35 -0000 @@ -1862,12 +1862,12 @@ case 0: return builtin_type_int0; case 4: - return builtin_type_int32; + return builtin_type_uint32; case 8: if (tdep->ppc_ev0_regnum <= n && n <= tdep->ppc_ev31_regnum) return builtin_type_vec64; else - return builtin_type_int64; + return builtin_type_uint64; break; case 16: return builtin_type_vec128; --------------060502030203060502050409--