From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3235 invoked by alias); 9 Apr 2003 22:48:19 -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 3215 invoked from network); 9 Apr 2003 22:48:19 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 9 Apr 2003 22:48:19 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id h39MmJe10028 for ; Wed, 9 Apr 2003 18:48:19 -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 h39MmIJ07001 for ; Wed, 9 Apr 2003 18:48:18 -0400 Received: from localhost.localdomain (vpn50-42.rdu.redhat.com [172.16.50.42]) by pobox.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h39MmIm20268 for ; Wed, 9 Apr 2003 18:48:18 -0400 Received: (from kev@localhost) by localhost.localdomain (8.11.6/8.11.6) id h39MmCe20773 for gdb-patches@sources.redhat.com; Wed, 9 Apr 2003 15:48:12 -0700 Date: Wed, 09 Apr 2003 22:48:00 -0000 From: Kevin Buettner Message-Id: <1030409224812.ZM20772@localhost.localdomain> To: gdb-patches@sources.redhat.com Subject: [PATCH] rs6000-tdep.c: Fix regnum for R0 is 0 assumption MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-04/txt/msg00186.txt.bz2 I've just committed the patch below. * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the register number for R0 is 0. Index: rs6000-tdep.c =================================================================== RCS file: /cvs/src/src/gdb/rs6000-tdep.c,v retrieving revision 1.125 diff -u -p -r1.125 rs6000-tdep.c --- rs6000-tdep.c 9 Apr 2003 15:08:26 -0000 1.125 +++ rs6000-tdep.c 9 Apr 2003 22:41:00 -0000 @@ -1646,7 +1646,7 @@ frame_get_saved_regs (struct frame_info CORE_ADDR gpr_addr = frame_addr + fdatap->gpr_offset; for (i = fdatap->saved_gpr; i < 32; i++) { - get_frame_saved_regs (fi)[i] = gpr_addr; + get_frame_saved_regs (fi)[tdep->ppc_gp0_regnum + i] = gpr_addr; gpr_addr += wordsize; } }