diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-09-09 22:41:47 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-09-09 22:41:47 +0000 |
commit | e56a0ecc9e596e2109148793cac8fb905e71d544 (patch) | |
tree | 43c84d3bc12b2b56d1ee57151bb3e858cdc84c29 /gdb/ppc-sysv-tdep.c | |
parent | fbd93201df80d4028b0e4762e701b20f96cff8bb (diff) | |
download | binutils-gdb-e56a0ecc9e596e2109148793cac8fb905e71d544.tar.gz |
2003-09-09 Andrew Cagney <cagney@redhat.com>
* rs6000-tdep.c (ppc_push_return_address): Delete function.
(rs6000_push_dummy_call): Set LR to BP_ADDR.
(rs6000_gdbarch_init): Do not set deprecated_push_return_address.
* ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
Diffstat (limited to 'gdb/ppc-sysv-tdep.c')
-rw-r--r-- | gdb/ppc-sysv-tdep.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/ppc-sysv-tdep.c b/gdb/ppc-sysv-tdep.c index bd801881837..954800770ef 100644 --- a/gdb/ppc-sysv-tdep.c +++ b/gdb/ppc-sysv-tdep.c @@ -339,6 +339,10 @@ ppc_sysv_abi_push_dummy_call (struct gdbarch *gdbarch, CORE_ADDR func_addr, } } + /* Point the inferior function call's return address at the dummy's + breakpoint. */ + regcache_raw_write_signed (regcache, tdep->ppc_lr_regnum, bp_addr); + target_store_registers (-1); return sp; } |