diff options
author | Richard Earnshaw <richard.earnshaw@arm.com> | 2002-01-21 16:27:42 +0000 |
---|---|---|
committer | Richard Earnshaw <richard.earnshaw@arm.com> | 2002-01-21 16:27:42 +0000 |
commit | c3b4394c3a649e2c04f792da63b67b4866b6b5f2 (patch) | |
tree | 2520bc469ebc5360a07286df1354615579c5c195 /gdb/config/arm | |
parent | 7b45c6e1dabcb4860888f46ace53e7425741dce3 (diff) | |
download | gdb-c3b4394c3a649e2c04f792da63b67b4866b6b5f2.zip gdb-c3b4394c3a649e2c04f792da63b67b4866b6b5f2.tar.gz gdb-c3b4394c3a649e2c04f792da63b67b4866b6b5f2.tar.bz2 |
Richard Earnshaw <rearnsha@arm.com>
and Kevin Buettner <kevinb@redhat.com>
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, save_prologue_cache): Likewise.
(_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
* 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.
Diffstat (limited to 'gdb/config/arm')
-rw-r--r-- | gdb/config/arm/tm-arm.h | 24 |
1 files changed, 4 insertions, 20 deletions
diff --git a/gdb/config/arm/tm-arm.h b/gdb/config/arm/tm-arm.h index cd20548..8a0d613 100644 --- a/gdb/config/arm/tm-arm.h +++ b/gdb/config/arm/tm-arm.h @@ -1,6 +1,6 @@ /* Definitions to target GDB to ARM targets. Copyright 1986, 1987, 1988, 1989, 1991, 1993, 1994, 1995, 1996, 1997, - 1998, 1999, 2000 Free Software Foundation, Inc. + 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc. This file is part of GDB. @@ -316,18 +316,6 @@ extern void convert_to_extended (void *dbl, void *ptr); #define VARIABLES_INSIDE_BLOCK(desc, gcc_p) (!(gcc_p)) -/* Define other aspects of the stack frame. We keep the offsets of - all saved registers, 'cause we need 'em a lot! We also keep the - current size of the stack frame, and the offset of the frame - pointer from the stack pointer (for frameless functions, and when - we're still in the prologue of a function with a frame) */ - -#define EXTRA_FRAME_INFO \ - struct frame_saved_regs fsr; \ - int framesize; \ - int frameoffset; \ - int framereg; - extern void arm_init_extra_frame_info (int fromleaf, struct frame_info * fi); #define INIT_EXTRA_FRAME_INFO(fromleaf, fi) \ arm_init_extra_frame_info ((fromleaf), (fi)) @@ -398,13 +386,9 @@ extern CORE_ADDR arm_frame_saved_pc (struct frame_info *); ways in the stack frame. sp is even more special: the address we return for it IS the sp for the next frame. */ -struct frame_saved_regs; -struct frame_info; -void arm_frame_find_saved_regs (struct frame_info * fi, - struct frame_saved_regs * fsr); - -#define FRAME_FIND_SAVED_REGS(frame_info, frame_saved_regs) \ - arm_frame_find_saved_regs (frame_info, &(frame_saved_regs)); +void arm_frame_init_saved_regs (struct frame_info *); +#define FRAME_INIT_SAVED_REGS(frame_info) \ + arm_frame_init_saved_regs (frame_info); /* Things needed for making the inferior call functions. */ |