From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28155 invoked by alias); 11 May 2002 01:04:50 -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 27983 invoked from network); 11 May 2002 01:04:48 -0000 Received: from unknown (HELO localhost.redhat.com) (24.112.240.27) by sources.redhat.com with SMTP; 11 May 2002 01:04:48 -0000 Received: from cygnus.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id AE9993DAA; Fri, 10 May 2002 21:04:47 -0400 (EDT) Message-ID: <3CDC6E2F.9020702@cygnus.com> Date: Fri, 10 May 2002 18:04:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0rc1) Gecko/20020429 X-Accept-Language: en-us, en MIME-Version: 1.0 To: davidm@hpl.hp.com Cc: gdb-patches@sources.redhat.com Subject: Re: new gdb arch routine FRAME_UNCHANGED References: <200205110023.g4B0NVCF004832@napali.hpl.hp.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-05/txt/msg00379.txt.bz2 > The patch below defines a new gdbarch routine called FRAME_UNCHANGED. > This is needed for gdb/ia64 because the ia64 architecture has two > separate stack pointers (one for memory stack and one for register stack). > Because of the two stacks, it's not possible to look just at the frame > pointer and PC to determine whether a frame changed. > > If the patch looks OK, I'd appreciate if someone could apply it. > > Note: the patch below doesn't include the ia64 version of > FRAME_UNCHANGED. It is part of a larger update to add unwind library > support to gdb/ia64 and I'll submit that separately. So, for now, the > patch is effectively a no-op for all platforms. Is the patch available somewhere? When you say unwind library support do you mean dwarf2cfi or something else? From memory CFI identifies a frame using CFA and PC, I'm wondering how things work here. cf: http://sources.redhat.com/ml/gdb-patches/2002-04/msg00749.html There is code through out GDB that relies on being able to re-find a frame in the frame chain. The code typically relies on just the frame address (oops). The referenced patch changes it to use frame/pc. If I understand what you're saying correctly, still more information will need to be saved? > Also, it will be necessary to re-generate gdbarch.[ch] after applying > the patch. (that's normal) enjoy, Andrew