* rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
(rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
* config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
Delete macro.
+2004-02-29 Andrew Cagney <cagney@redhat.com>
+
+ * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
+ (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
+ * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
+ Delete macro.
+
2004-02-29 Daniel Jacobowitz <drow@mvista.com>
* inflow.c (terminal_inferior): Don't give up the terminal if we
#define FP0_REGNUM 32 /* Floating point register 0 */
#define FPLAST_REGNUM 63 /* Last floating point register */
-/* Define other aspects of the stack frame. */
-
-#define DEPRECATED_INIT_FRAME_PC_FIRST(fromleaf, prev) \
- (fromleaf ? DEPRECATED_SAVED_PC_AFTER_CALL (prev->next) : \
- prev->next ? DEPRECATED_FRAME_SAVED_PC (prev->next) : read_pc ())
-
/* Notice when a new child process is started. */
#define TARGET_CREATE_INFERIOR_HOOK rs6000_create_inferior
}
static CORE_ADDR
+rs6000_init_frame_pc_first (int fromleaf, struct frame_info *prev)
+{
+ return (fromleaf ? DEPRECATED_SAVED_PC_AFTER_CALL (prev->next)
+ : prev->next ? DEPRECATED_FRAME_SAVED_PC (prev->next) : read_pc ());
+}
+
+static CORE_ADDR
rs6000_frame_args_address (struct frame_info *fi)
{
struct frame_extra_info *extra_info = get_frame_extra_info (fi);
set_gdbarch_deprecated_frame_init_saved_regs (gdbarch, rs6000_frame_init_saved_regs);
set_gdbarch_deprecated_init_extra_frame_info (gdbarch, rs6000_init_extra_frame_info);
+ set_gdbarch_deprecated_init_frame_pc_first (gdbarch, rs6000_init_frame_pc_first);
if (!sysv_abi)
{