diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-10-10 21:32:47 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-10-10 21:32:47 +0000 |
commit | e754ae69e1edcc0097c2fed2955716e181680e67 (patch) | |
tree | ec87a8f7d7e3ed9e25015dc95f7afe5b3e916565 /gdb/ppcnbsd-tdep.c | |
parent | * blockframe.c (inside_main_func): No longer use symbol_lookup() (diff) | |
download | binutils-gdb-e754ae69e1edcc0097c2fed2955716e181680e67.tar.gz binutils-gdb-e754ae69e1edcc0097c2fed2955716e181680e67.tar.bz2 binutils-gdb-e754ae69e1edcc0097c2fed2955716e181680e67.zip |
2003-10-10 Andrew Cagney <cagney@redhat.com>
* rs6000-tdep.c (e500_store_return_value): Delete function.
(e500_extract_return_value): Delete function.
(rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
"restore_return_value" to "ppc_sysv_abi_extract_return_value" and
"ppc_sysv_abi_restore_return_value" where applicable.
* ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
(ppc_sysv_abi_extract_return_value): Declare.
(ppc_sysv_abi_broken_store_return_value): Declare.
(ppc_sysv_abi_broken_extract_return_value): Declare.
(ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
* ppc-sysv-tdep.c (return_value_convention): Move definition to
start of file.
(do_ppc_sysv_return_value): New function.
(ppc_sysv_abi_extract_return_value): New function.
(ppc_sysv_abi_store_return_value): New function.
(ppc_sysv_abi_broken_extract_return_value): New function.
(ppc_sysv_abi_broken_store_return_value): New function.
(ppc_sysv_abi_use_struct_convention): Call
do_ppc_sysv_return_value.
Diffstat (limited to 'gdb/ppcnbsd-tdep.c')
-rw-r--r-- | gdb/ppcnbsd-tdep.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/ppcnbsd-tdep.c b/gdb/ppcnbsd-tdep.c index 97323d57249..b566f30e4f7 100644 --- a/gdb/ppcnbsd-tdep.c +++ b/gdb/ppcnbsd-tdep.c @@ -226,8 +226,11 @@ ppcnbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) { set_gdbarch_pc_in_sigtramp (gdbarch, ppcnbsd_pc_in_sigtramp); - + /* For NetBSD, this is an on again, off again thing. Some systems + do use the broken struct convention, and some don't. */ set_gdbarch_use_struct_convention (gdbarch, ppcnbsd_use_struct_convention); + set_gdbarch_extract_return_value (gdbarch, ppc_sysv_abi_broken_extract_return_value); + set_gdbarch_store_return_value (gdbarch, ppc_sysv_abi_broken_store_return_value); set_solib_svr4_fetch_link_map_offsets (gdbarch, nbsd_ilp32_solib_svr4_fetch_link_map_offsets); } |