From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12626 invoked by alias); 17 May 2006 17:59:55 -0000 Received: (qmail 12618 invoked by uid 22791); 17 May 2006 17:59:54 -0000 X-Spam-Check-By: sourceware.org Received: from postal2.ind.alcatel.com (HELO ind.alcatel.com) (208.8.0.238) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 17 May 2006 17:59:52 +0000 Received: from mailhub2.ind.alcatel.com (mailhub2.ind.alcatel.com [198.206.181.70]) by ind.alcatel.com (8.12.9/8.12.9/(postal 2.0 [OUT])) with ESMTP id k4HHxofP007582 for ; Wed, 17 May 2006 10:59:50 -0700 (PDT) X-InterScan: Passed Received: from mailhub2.ind.alcatel.com (localhost [127.0.0.1]) by mailhub2.ind.alcatel.com (8.12.10/8.12.10/(mailhub2 4.1.4 [HUB2])) with ESMTP id k4HHxo0M007057 for ; Wed, 17 May 2006 10:59:50 -0700 (PDT) Received: from omni.ind.alcatel.com ([198.206.181.20]) by mailhub2.ind.alcatel.com (MailFrontier 4.1.1.5579) with ESMTP; Wed, 17 May 2006 10:59:50 -0700 Received: from [128.251.40.30] (tuacahn.utah.ind.alcatel.com [128.251.40.30]) by omni.ind.alcatel.com (8.9.3+Sun/8.9.1 (omni 3.0 [engr-SPOOL])) with ESMTP id KAA06238; Wed, 17 May 2006 10:59:49 -0700 (PDT) Message-ID: <446B64BA.8050905@ind.alcatel.com> Date: Wed, 17 May 2006 18:13:00 -0000 From: Greg Page User-Agent: Thunderbird 1.5 (X11/20051201) MIME-Version: 1.0 To: gdb-patches@sources.redhat.com Subject: Patch for GDB rs6000-tdep.c Content-Type: multipart/mixed; boundary="------------010601030008020604000804" X-Mlf-Threat: nothreat X-Mlf-Threat-Detailed: nothreat;none;list_addrbk_domain Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-05/txt/msg00381.txt.bz2 This is a multi-part message in MIME format. --------------010601030008020604000804 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 362 The attached is a patch for the file gdb-6.4/gdb/rs6000-tdep.c. The problem: The register definitions for the e500 assume only 4 bytes per floating-point register but the gdbserver assumes 8 bytes per floating-point register. Changelog rs6000-tdep.c (registers_e500[]): Use COMMON_UISA_REGS to define general purpose, floating-point, pc, and ps registers. --------------010601030008020604000804 Content-Type: text/x-patch; name="e500.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="e500.patch" Content-length: 802 *** rs6000-tdep.c 2005-11-01 12:32:36.000000000 -0700 --- rs6000-tdep.c.new 2006-05-17 11:28:45.526751000 -0600 *************** static const struct reg registers_7400[] *** 2629,2637 **** /* Motorola e500. */ static const struct reg registers_e500[] = { ! /* 0 .. 31 */ PPC_SPE_GP_REGS, ! /* 32 .. 63 */ PPC_SPE_UPPER_GP_REGS, ! /* 64 .. 65 */ R(pc), R(ps), /* 66 .. 70 */ PPC_UISA_NOFP_SPRS, /* 71 .. 72 */ R8(acc), S4(spefscr), /* NOTE: Add new registers here the end of the raw register --- 2629,2635 ---- /* Motorola e500. */ static const struct reg registers_e500[] = { ! /* 0 .. 65 */ COMMON_UISA_REGS, /* 66 .. 70 */ PPC_UISA_NOFP_SPRS, /* 71 .. 72 */ R8(acc), S4(spefscr), /* NOTE: Add new registers here the end of the raw register --------------010601030008020604000804--