This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
[rfc] Add per frame frame_saved_pc()
- From: Andrew Cagney <ac131313 at ges dot redhat dot com>
- To: gdb at sources dot redhat dot com
- Date: Thu, 19 Sep 2002 23:30:42 -0400
- Subject: [rfc] Add per frame frame_saved_pc()
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