diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-09-11 19:27:25 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-09-11 19:27:25 +0000 |
commit | 33a7c2fc4d40cc53f649c9bbb3780826dd56fe1b (patch) | |
tree | 8d9ea0a11d31c7716168cc866b19495bb8effb9d /gdb/ppc-sysv-tdep.c | |
parent | 63cd24fec9c4000dfc5f902924b4d97f0a0a1978 (diff) | |
download | gdb-33a7c2fc4d40cc53f649c9bbb3780826dd56fe1b.zip gdb-33a7c2fc4d40cc53f649c9bbb3780826dd56fe1b.tar.gz gdb-33a7c2fc4d40cc53f649c9bbb3780826dd56fe1b.tar.bz2 |
2003-09-11 Andrew Cagney <cagney@redhat.com>
* rs6000-tdep.c (rs6000_push_dummy_call): Use
regcache_raw_write_signed to set SP_REGNUM, move the operation to
near the function's end.
(rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
* ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
regcache_raw_write_signed to set SP_REGNUM.
Diffstat (limited to 'gdb/ppc-sysv-tdep.c')
-rw-r--r-- | gdb/ppc-sysv-tdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/ppc-sysv-tdep.c b/gdb/ppc-sysv-tdep.c index 9548007..2f13e29 100644 --- a/gdb/ppc-sysv-tdep.c +++ b/gdb/ppc-sysv-tdep.c @@ -189,8 +189,8 @@ ppc_sysv_abi_push_dummy_call (struct gdbarch *gdbarch, CORE_ADDR func_addr, /* Make sure that we maintain 16 byte alignment */ sp &= ~0x0f; - /* Update %sp before proceeding any further */ - write_register (SP_REGNUM, sp); + /* Update %sp before proceeding any further. */ + regcache_raw_write_signed (regcache, SP_REGNUM, sp); /* write the backchain */ store_unsigned_integer (old_sp_buf, 4, saved_sp); |