From 310e9b6a18e38f1060a0c100d07f1b24c91ab655 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Sun, 1 Jun 2003 19:02:19 +0000 Subject: [PATCH] 2003-06-01 Andrew Cagney * infcall.c (call_function_by_hand): Update comment on DEPRECATED_DUMMY_WRITE_SP. * mips-tdep.c (mips_gdbarch_init): Do not set deprecated_dummy_write_sp. (mips_eabi_push_dummy_call): Set the SP register. (mips_o64_push_dummy_call): Set the SP register. (mips_o32_push_dummy_call): Set the SP register. (mips_n32n64_push_dummy_call): Set the SP register. --- gdb/ChangeLog | 12 ++++++++++++ gdb/mips-tdep.c | 9 ++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 279d981..1a1ba34 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,15 @@ +2003-06-01 Andrew Cagney + + * infcall.c (call_function_by_hand): Update comment on + DEPRECATED_DUMMY_WRITE_SP. + + * mips-tdep.c (mips_gdbarch_init): Do not set + deprecated_dummy_write_sp. + (mips_eabi_push_dummy_call): Set the SP register. + (mips_o64_push_dummy_call): Set the SP register. + (mips_o32_push_dummy_call): Set the SP register. + (mips_n32n64_push_dummy_call): Set the SP register. + 2003-06-01 Richard Henderson * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c index 7b2a700..7bc4aeb 100644 --- a/gdb/mips-tdep.c +++ b/gdb/mips-tdep.c @@ -2969,6 +2969,8 @@ mips_eabi_push_dummy_call (struct gdbarch *gdbarch, CORE_ADDR func_addr, fprintf_unfiltered (gdb_stdlog, "\n"); } + regcache_cooked_write_signed (regcache, SP_REGNUM, sp); + /* Return adjusted stack pointer. */ return sp; } @@ -3198,6 +3200,8 @@ mips_n32n64_push_dummy_call (struct gdbarch *gdbarch, CORE_ADDR func_addr, fprintf_unfiltered (gdb_stdlog, "\n"); } + regcache_cooked_write_signed (regcache, SP_REGNUM, sp); + /* Return adjusted stack pointer. */ return sp; } @@ -3504,6 +3508,8 @@ mips_o32_push_dummy_call (struct gdbarch *gdbarch, CORE_ADDR func_addr, fprintf_unfiltered (gdb_stdlog, "\n"); } + regcache_cooked_write_signed (regcache, SP_REGNUM, sp); + /* Return adjusted stack pointer. */ return sp; } @@ -3810,6 +3816,8 @@ mips_o64_push_dummy_call (struct gdbarch *gdbarch, CORE_ADDR func_addr, fprintf_unfiltered (gdb_stdlog, "\n"); } + regcache_cooked_write_signed (regcache, SP_REGNUM, sp); + /* Return adjusted stack pointer. */ return sp; } @@ -5927,7 +5935,6 @@ mips_gdbarch_init (struct gdbarch_info info, set_gdbarch_write_pc (gdbarch, generic_target_write_pc); set_gdbarch_deprecated_target_read_fp (gdbarch, mips_read_sp); /* Draft FRAME base. */ set_gdbarch_read_sp (gdbarch, mips_read_sp); - set_gdbarch_deprecated_dummy_write_sp (gdbarch, generic_target_write_sp); /* Add/remove bits from an address. The MIPS needs be careful to ensure that all 32 bit addresses are sign extended to 64 bits. */ -- 2.7.4