Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* [rfc] Add per frame frame_saved_pc()
@ 2002-09-19 20:30 Andrew Cagney
  2002-09-20  0:24 ` Kevin Buettner
  0 siblings, 1 reply; 4+ messages in thread
From: Andrew Cagney @ 2002-09-19 20:30 UTC (permalink / raw)
  To: gdb

Hello,

Back to (trumpet noises) CFI and more fall-out from the MIPS and generic 
dummy frames.

- The CFI doco describes a ``return_address_register'' which ``[...] 
might not correspond to a machine register''.  This means a CFI specific 
frame saved PC method.

- Given a generic dummy frame, it knows exactly where the callers frame 
PC is.  No need to ask the target code.

With this in mind, I'd like to propose making frame_saved_pc() a 
per-frame method.

Thoughts?

To be honest, it is largely motivated by me having to wade though the 
MIPS code and add if(PC_IN_CALL_DUMMY()) to everything - I'm hopeing to 
avoid it next time :-)

After this is comes FRAME_CHAIN() but I think that needs more careful 
consideration.

Andrew


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

end of thread, other threads:[~2002-09-22  1:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-19 20:30 [rfc] Add per frame frame_saved_pc() Andrew Cagney
2002-09-20  0:24 ` Kevin Buettner
2002-09-20  8:11   ` Andrew Cagney
2002-09-21 18:08     ` Andrew Cagney

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