diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-06-01 19:02:19 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-06-01 19:02:19 +0000 |
commit | 310e9b6a18e38f1060a0c100d07f1b24c91ab655 (patch) | |
tree | c3f61109f3362ec23f370d745fc9f338cac43db3 /gdb/mips-tdep.c | |
parent | 5ab8487279b4034ed8b1aa56cc36d25f5dbd5dd8 (diff) | |
download | gdb-310e9b6a18e38f1060a0c100d07f1b24c91ab655.zip gdb-310e9b6a18e38f1060a0c100d07f1b24c91ab655.tar.gz gdb-310e9b6a18e38f1060a0c100d07f1b24c91ab655.tar.bz2 |
2003-06-01 Andrew Cagney <cagney@redhat.com>
* 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.
Diffstat (limited to 'gdb/mips-tdep.c')
-rw-r--r-- | gdb/mips-tdep.c | 9 |
1 files changed, 8 insertions, 1 deletions
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. */ |