[PATCH] ARM: Eliminate EXTRA_FRAME_INFO & FRAME_FIND_SAVED_REGS
Richard Earnshaw
rearnsha@arm.com
Sat Jan 12 03:51:00 GMT 2002
This patch eliminates the deprecated macros EXTRA_FRAME_INFO &
FRAME_FIND_SAVED_REGS from the arm target support files and replaces them
with the new methods for doing this. Tested on arm-netbsd and arm-linux
with no regressions.
Most of the patch is mechanical replacement of
Replace with
fip->fsr.regs fip->saved_regs
fip->framereg fip->extra_info->framereg
fip->framesize fip->extra_info->framesize
fip->frameoffset fip->extra_info->framesize
R.
Convert arm targets to new FRAME interface.
* arm-tdep.c (struct frame_extra_info): Remove fsr.
(arm_frame_find_save_regs): Delete.
(arm_frame_init_saved_regs): New.
(arm_init_extra_frame_info): Alloacte saved_regs as required.
Allocate extra_info as required. Convert all uses of fsr.regs
to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
to use extra_info.
(thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
(arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
(check_prologue_cache): Likewise. Also ensure prologue_cache is
correctly set up on first use.
(save_prologue_cache): Likewise.
* config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
(FRAME_FIND_SAVED_REGS): Delete.
(arm_frame_find_saved_regs): Delete prototype.
(arm_frame_init_saved_regs): New prototype.
(FRAME_INIT_SAVED_REGS): Define.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gdb-frame.patch
Type: text/x-patch
Size: 24031 bytes
Desc: gdb-frame.patch
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20020112/3608d68b/attachment.bin>
More information about the Gdb-patches
mailing list