public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* frame->unwind->this_base()
@ 2003-03-16 22:04 Andrew Cagney
  2003-03-16 22:10 ` frame->unwind->this_base() Daniel Jacobowitz
  0 siblings, 1 reply; 22+ messages in thread
From: Andrew Cagney @ 2003-03-16 22:04 UTC (permalink / raw)
  To: gdb

At present there is a per-frame ID method since different frames 
determine their ID using different techniques.  The ID (which identifies 
a given frame instance) includes a base and pc/func value.

GDB's frame code also makes available the get_frame_base() method. 
While the default implementation returns get_frame_id().base, I think 
there is going to need to be a per-frame frame->unwind->this_base method.

For dwarf2 frames, it would return, DW_AT_frame_base.  For prologue 
frames, it would return an attempt at an equivalent value.  Hopefully it 
wouldn't be called for other frame types :-).

It might even be reasonable for a prologue based unwinder to error out 
when asked for the frame's base before the stack frame has been created.

Thoughts?

I should note that dwarf2expr.c contains code that tries to 
locally/directly evaluate the frame base.  I think that should instead 
do a get_frame_base() call.

Andrew

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

end of thread, other threads:[~2003-03-19 15:32 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-16 22:04 frame->unwind->this_base() Andrew Cagney
2003-03-16 22:10 ` frame->unwind->this_base() Daniel Jacobowitz
2003-03-17  0:09   ` frame->unwind->this_base() Andrew Cagney
2003-03-17  0:14     ` frame->unwind->this_base() Daniel Jacobowitz
2003-03-17 16:22       ` frame->unwind->this_base() Andrew Cagney
2003-03-17 16:38         ` frame->unwind->this_base() Daniel Jacobowitz
2003-03-17 16:56           ` frame->unwind->this_base() Andrew Cagney
2003-03-17 17:11             ` frame->unwind->this_base() Daniel Jacobowitz
2003-03-17 18:20               ` frame->unwind->this_base() Andrew Cagney
2003-03-17 19:35                 ` frame->unwind->this_base() Daniel Jacobowitz
2003-03-18  4:29                   ` frame->unwind->this_base() Andrew Cagney
2003-03-18  5:13                     ` frame->unwind->this_base() Daniel Jacobowitz
2003-03-18 15:22                       ` frame->unwind->this_base() Andrew Cagney
2003-03-18 16:38                         ` frame->unwind->this_base() Daniel Jacobowitz
2003-03-18 17:02                           ` frame->unwind->this_base() Andrew Cagney
2003-03-18 17:11                             ` frame->unwind->this_base() Daniel Jacobowitz
2003-03-18 17:28                               ` frame->unwind->this_base() Andrew Cagney
2003-03-18 17:38                                 ` frame->unwind->this_base() Daniel Jacobowitz
2003-03-18 20:22                                   ` frame->unwind->this_base() Andrew Cagney
2003-03-19 14:11                                     ` frame->unwind->this_base() Daniel Jacobowitz
2003-03-19 15:24                                       ` frame->unwind->this_base() Andrew Cagney
2003-03-19 15:32                                         ` frame->unwind->this_base() Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).