diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-10-03 21:11:39 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-10-03 21:11:39 +0000 |
commit | afd48b755b8aa259b9a7e287cc88642351a887c1 (patch) | |
tree | 6b79b0ffab5a26030774902e97be0431dfc763f2 /gdb/ppc-tdep.h | |
parent | 268e2188466a6af7c98a68358c90141a54d1481d (diff) | |
download | gdb-afd48b755b8aa259b9a7e287cc88642351a887c1.zip gdb-afd48b755b8aa259b9a7e287cc88642351a887c1.tar.gz gdb-afd48b755b8aa259b9a7e287cc88642351a887c1.tar.bz2 |
2003-10-03 Andrew Cagney <cagney@redhat.com>
* rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
set extract_return_value, store_return_value and
use_struct_convention to ppc64_sysv_abi_extract_return_value,
ppc64_sysv_abi_store_return_value and
ppc64_sysv_abi_use_struct_convention.
* ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
(ppc64_sysv_abi_store_return_value): Declare.
(ppc64_sysv_abi_use_struct_convention): Declare.
* ppc-sysv-tdep.c (enum return_value_convention): Define.
(ppc64_sysv_abi_extract_return_value): New function.
(ppc64_sysv_abi_store_return_value): New function.
(ppc64_sysv_abi_use_struct_convention): New function.
(ppc64_sysv_abi_return_value): New function.
Diffstat (limited to 'gdb/ppc-tdep.h')
-rw-r--r-- | gdb/ppc-tdep.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/ppc-tdep.h b/gdb/ppc-tdep.h index dd84fd1..fd150a0 100644 --- a/gdb/ppc-tdep.h +++ b/gdb/ppc-tdep.h @@ -47,6 +47,14 @@ struct link_map_offsets *ppc_linux_svr4_fetch_link_map_offsets (void); void ppc_linux_supply_gregset (char *buf); void ppc_linux_supply_fpregset (char *buf); +int ppc64_sysv_abi_use_struct_convention (int gcc_p, struct type *value_type); +void ppc64_sysv_abi_extract_return_value (struct type *valtype, + struct regcache *regbuf, + void *valbuf); +void ppc64_sysv_abi_store_return_value (struct type *valtype, + struct regcache *regbuf, + const void *valbuf); + /* From rs6000-tdep.c... */ CORE_ADDR rs6000_frame_saved_pc (struct frame_info *fi); |