diff options
author | Jim Blandy <jimb@codesourcery.com> | 2001-11-29 22:24:42 +0000 |
---|---|---|
committer | Jim Blandy <jimb@codesourcery.com> | 2001-11-29 22:24:42 +0000 |
commit | c8f9d51ce2e3eb695d8539d5615d0831ff906b3b (patch) | |
tree | 341cf684c7d00a33aa95ff2226760e85cb8a5af1 /gdb/arch-utils.h | |
parent | af667503bbcea170ccc0c5d98894ea9edb074567 (diff) | |
download | gdb-c8f9d51ce2e3eb695d8539d5615d0831ff906b3b.zip gdb-c8f9d51ce2e3eb695d8539d5615d0831ff906b3b.tar.gz gdb-c8f9d51ce2e3eb695d8539d5615d0831ff906b3b.tar.bz2 |
Tighten up GDB's support for returning structs by value.
* s390-tdep.c (s390_use_struct_convention): New function.
(s390_gdbarch_init): Register it as the S/390's
USE_STRUCT_CONVENTION method. Register
generic_cannot_extract_struct_value_address as our
EXTRACT_STRUCT_VALUE_ADDRESS method.
* arch-utils.c (generic_cannot_extract_struct_value_address): New
function.
* arch-utils.h: Add corresponding prototype.
Diffstat (limited to 'gdb/arch-utils.h')
-rw-r--r-- | gdb/arch-utils.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/arch-utils.h b/gdb/arch-utils.h index 5dec3c2..b065dec 100644 --- a/gdb/arch-utils.h +++ b/gdb/arch-utils.h @@ -27,6 +27,8 @@ extern int gdbarch_debug; /* Fallback for register convertible. */ extern gdbarch_register_convertible_ftype generic_register_convertible_not; +extern CORE_ADDR generic_cannot_extract_struct_value_address (char *dummy); + /* Helper function for targets that don't know how my arguments are being passed */ extern gdbarch_frame_num_args_ftype frame_num_args_unknown; |