From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29472 invoked by alias); 9 Aug 2002 00:24:29 -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 29443 invoked from network); 9 Aug 2002 00:24:26 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 9 Aug 2002 00:24:26 -0000 Received: from int-mx2.corp.redhat.com (nat-pool-rdu.redhat.com [172.16.52.200] (may be forged)) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id g790BDl23362 for ; Thu, 8 Aug 2002 20:11: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 g790OJu00782 for ; Thu, 8 Aug 2002 20:24:19 -0400 Received: from romulus.sfbay.redhat.com (remus.sfbay.redhat.com [172.16.27.252]) by potter.sfbay.redhat.com (8.11.6/8.11.6) with ESMTP id g790OIe12950 for ; Thu, 8 Aug 2002 17:24:19 -0700 Received: (from kev@localhost) by romulus.sfbay.redhat.com (8.11.6/8.11.6) id g790OHp26241 for gdb-patches@sources.redhat.com; Thu, 8 Aug 2002 17:24:17 -0700 Date: Thu, 08 Aug 2002 17:24:00 -0000 From: Kevin Buettner Message-Id: <1020809002416.ZM26240@localhost.localdomain> To: gdb-patches@sources.redhat.com Subject: [RFA] mips_init_extra_frame_info: Set saved_regs value for SP_REGNUM MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2002-08/txt/msg00196.txt.bz2 This patch fixes the other code path mentioned in earlier mail so that frame->saved_regs[SP_REGNUM] will be initialized at each place where saved_regs is initialized. For background on why this change is needed, see: http://sources.redhat.com/ml/gdb-patches/2002-08/msg00195.html Okay to commit? * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's saved regs value. Index: mips-tdep.c =================================================================== RCS file: /cvs/src/src/gdb/mips-tdep.c,v retrieving revision 1.93 diff -u -p -r1.93 mips-tdep.c --- mips-tdep.c 8 Aug 2002 23:32:52 -0000 1.93 +++ mips-tdep.c 9 Aug 2002 00:13:05 -0000 @@ -2342,6 +2342,7 @@ mips_init_extra_frame_info (int fromleaf memcpy (fci->saved_regs, temp_saved_regs, SIZEOF_FRAME_SAVED_REGS); fci->saved_regs[PC_REGNUM] = fci->saved_regs[RA_REGNUM]; + fci->saved_regs[SP_REGNUM] = fci->frame; } }