[commit] soften up the old frame code

Andrew Cagney ac131313@redhat.com
Mon Jun 16 20:16:00 GMT 2003


Hello,

The intent of this patch is to soften the requirements placed on the old 
frame code.  That, the theory goes, should make it easier to migrate. 
It does the following:

- removes the requirement for DEPRECATED_FRAME_INIT_SAVED_REGS
This lets people delete that function if one of the other init functions 
is already doing the work.  This should help.

- removes the need for DEPRECATED_FRAME_CHAIN
If not present, the legacy code will try to use the frame ID unwinder to 
get the chained frame.  This might help.

- adds deprecated_get_next_frame_hack()
Unlike get_next_frame, this verison will return the sentinel frame.  The 
intent is for people to change code like: analyze_prologue (this_frame, 
&cache) into: analyze_prologue (this_frame->next, &cache) with out 
needing to worry about a NULL frame.

These might help, but either way ....

Andrew
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diffs
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20030616/ad1cee3e/attachment.ksh>


More information about the Gdb-patches mailing list