From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14583 invoked by alias); 13 Dec 2004 05:11:18 -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 14526 invoked from network); 13 Dec 2004 05:11:06 -0000 Received: from unknown (HELO smtp10.wanadoo.fr) (193.252.22.21) by sourceware.org with SMTP; 13 Dec 2004 05:11:06 -0000 Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf1004.wanadoo.fr (SMTP Server) with SMTP id 2AD672400148; Mon, 13 Dec 2004 06:11:06 +0100 (CET) Received: from takamaka.act-europe.fr (AStDenis-103-1-3-7.w81-249.abo.wanadoo.fr [81.249.113.7]) by mwinf1004.wanadoo.fr (SMTP Server) with ESMTP id 8F3C52400145; Mon, 13 Dec 2004 06:11:05 +0100 (CET) Received: by takamaka.act-europe.fr (Postfix, from userid 507) id 9E70B47DAD; Mon, 13 Dec 2004 09:11:02 +0400 (RET) Date: Mon, 13 Dec 2004 08:43:00 -0000 From: Joel Brobecker To: Andrew Cagney Cc: gdb-patches@sources.redhat.com Subject: Re: [RFA/alpha-osf] another next frame confusion in signal unwinder? Message-ID: <20041213051102.GF999@adacore.com> References: <20041201235125.GL1001@adacore.com> <41BC67C0.6080106@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="9amGYk9869ThD9tj" Content-Disposition: inline In-Reply-To: <41BC67C0.6080106@gnu.org> User-Agent: Mutt/1.4i X-SW-Source: 2004-12/txt/msg00353.txt.bz2 --9amGYk9869ThD9tj Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-length: 475 > (I need to deprecate get frame base). Can you just tweak this to return > get_frame_id().stack_addr before committing. Sure. Attached is what I ended up checking in. 2004-12-13 Joel Brobecker * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Change parameter name to make it clear that we already have a next frame. Return the sigcontext from that next frame instead of the frame following it. Thanks, -- Joel --9amGYk9869ThD9tj Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="osf.diff" Content-length: 869 Index: alpha-osf1-tdep.c =================================================================== RCS file: /cvs/src/src/gdb/alpha-osf1-tdep.c,v retrieving revision 1.18 diff -u -p -r1.18 alpha-osf1-tdep.c --- alpha-osf1-tdep.c 1 May 2004 15:34:49 -0000 1.18 +++ alpha-osf1-tdep.c 13 Dec 2004 05:04:53 -0000 @@ -35,14 +35,11 @@ alpha_osf1_pc_in_sigtramp (CORE_ADDR pc, } static CORE_ADDR -alpha_osf1_sigcontext_addr (struct frame_info *frame) +alpha_osf1_sigcontext_addr (struct frame_info *next_frame) { - struct frame_info *next_frame = get_next_frame (frame); + const struct frame_id next_id = get_frame_id (next_frame); - if (next_frame != NULL) - return (read_memory_integer (get_frame_base (next_frame), 8)); - else - return (read_memory_integer (get_frame_base (frame), 8)); + return (read_memory_integer (next_id.stack_addr, 8)); } static void --9amGYk9869ThD9tj--