Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* [rfc] frame->frame => frame->addr && frame->base()
@ 2002-04-11 13:56 Andrew Cagney
  2002-04-11 15:29 ` Kevin Buettner
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Andrew Cagney @ 2002-04-11 13:56 UTC (permalink / raw)
  To: gdb

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


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2002-04-26 14:58 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-11 13:56 [rfc] frame->frame => frame->addr && frame->base() Andrew Cagney
2002-04-11 15:29 ` Kevin Buettner
2002-04-11 16:42   ` Andrew Cagney
2002-04-12  5:54     ` Richard Earnshaw
2002-04-12  7:05       ` Andrew Cagney
2002-04-12  5:50 ` Richard Earnshaw
2002-04-12  6:38   ` Andrew Cagney
2002-04-12  8:53     ` Kevin Buettner
2002-04-12  9:05       ` Andrew Cagney
2002-04-12 14:59 ` Jim Blandy
2002-04-26  7:58 ` Andrew Cagney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox