From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9426 invoked by alias); 11 Apr 2002 20:56:07 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 9385 invoked from network); 11 Apr 2002 20:56:04 -0000 Received: from unknown (HELO localhost.redhat.com) (216.138.202.10) by sources.redhat.com with SMTP; 11 Apr 2002 20:56:04 -0000 Received: from cygnus.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 0ABC13CD1 for ; Thu, 11 Apr 2002 16:56:09 -0400 (EDT) Message-ID: <3CB5F868.8070001@cygnus.com> Date: Thu, 11 Apr 2002 13:56:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:0.9.9) Gecko/20020328 X-Accept-Language: en-us, en MIME-Version: 1.0 To: gdb@sources.redhat.com Subject: [rfc] frame->frame => frame->addr && frame->base() Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-04/txt/msg00173.txt.bz2 Hello, This comes from DanielB's and my discussion about dwarf2 CFA and dwarf2's frame_base vs GDB's frame->frame. An executive summary is that the two dwarf2 frame concepts (CFA and frame_base) do not go into one GDB frame (frame->frame). Because of this, I'd like to propose that the frame object have both: struct frame_info { ... // An ISA/ABI specific address within the ``specified frame'' that is constant throughout the lifetime of the frame. This address is used by GDB as a handle to identify this frame. This field must be initialized as part of the creation of a frame object. (see dwarf2 CFA) CORE_ADDR addr; // High level language concept of the base address of a frame. Often refered to as ``frame_base'' or ``frame pointer''. This value should only be computed on-demand. It is strongly recommended, though, that implementations cache the computed value in the frame cache. The method is initialized as part of the frame objects creation. The default method returns frame->addr. (see dwarf2 DW_AT_frame_base) CORE_ADDR (*base) (struct frame_info *frame); ... } Thoughts? Andrew