Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [rfc] trad-frame change
@ 2004-03-19  0:09 Andrew Cagney
  2004-03-03 16:43 ` Andrew Cagney
  2004-03-03 16:49 ` Daniel Jacobowitz
  0 siblings, 2 replies; 16+ messages in thread
From: Andrew Cagney @ 2004-03-19  0:09 UTC (permalink / raw)
  To: gdb-patches

Think of this as a pseudo patch.

I'm looking to extend the trad-frame code so that it includes the interface:

   trad_frame_append (gdbarch, frame_type, frame_sniffer, frame_cache);

This would do all the housekeeping necessary to create a FRAME_TYPE 
unwinder implemented with FRAME_SNIFFER and FRAME_CACHE functions.  The 
second function would have the interface:

   struct trad_frame_cache
   {
     struct frame_id this_id;
     CORE_ADDR this_base;
     struct trad_frame *saved_regs;
   };

   void frame_cache (struct frame_info *next_frame, struct 
trad_frame_cache *this_cache);

and would be called _once_ to populate the entire trad-frame cache. 
After that frame ID and register requests would be handled directly.

My rationale is simple.  Having just churned out unwinders for two 
architectures I'm seeing a pattern that suggests this would make life 
easier:

- people in a hurry can use interface

- people wanting to tune their unwinder can use the lower-level interface

thoughts?
Andrew

PS: This has been suggested before, but not as a new layer above the 
existing unwinder code


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

end of thread, other threads:[~2004-03-05 14:52 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-19  0:09 [rfc] trad-frame change Andrew Cagney
2004-03-03 16:43 ` Andrew Cagney
2004-03-03 16:49 ` Daniel Jacobowitz
2004-03-19  0:09   ` Daniel Jacobowitz
2004-03-19  0:09   ` Andrew Cagney
2004-03-03 18:34     ` Andrew Cagney
2004-03-19  0:09     ` Daniel Jacobowitz
2004-03-03 18:53       ` Daniel Jacobowitz
2004-03-19  0:09       ` Andrew Cagney
2004-03-03 20:20         ` Andrew Cagney
2004-03-03 20:29         ` Daniel Jacobowitz
2004-03-19  0:09           ` Daniel Jacobowitz
2004-03-19  0:09           ` Andrew Cagney
2004-03-03 20:41             ` Andrew Cagney
2004-03-05 14:52         ` Andrew Cagney
2004-03-19  0:09           ` Andrew Cagney

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