diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2007-10-13 00:06:54 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2007-10-13 00:06:54 +0000 |
commit | c187492465e6fd60ebf2f4710944fa7b6a679a02 (patch) | |
tree | eec7dd560967a03c06b750d01305d552254d35f6 /gdb/arch-utils.c | |
parent | 4c8b6ae009ad0e664cb1ec681e58c4a942fa4915 (diff) | |
download | fsf-binutils-gdb-c187492465e6fd60ebf2f4710944fa7b6a679a02.zip fsf-binutils-gdb-c187492465e6fd60ebf2f4710944fa7b6a679a02.tar.gz fsf-binutils-gdb-c187492465e6fd60ebf2f4710944fa7b6a679a02.tar.bz2 |
* gdbarch.sh (deprecated_use_struct_convention): Remove.
(extract_return_value, store_return_value): Remove.
(return_value): Remove default implementation.
* gdbarch.c, gdbarch.h: Regenerate.
* stack.c (return_command): Remove compatibility hack.
* arch-utils.c (legacy_return_value): Remove.
* arch-utils.h (legacy_return_value): Likewise.
* arch-utils.c (always_use_struct_convention): Remove.
* arch-utils.h (always_use_struct_convention): Likewise.
* value.c (generic_use_struct_convention): Remove.
* defs.h (generic_use_struct_convention): Likewise.
doc/ChangeLog:
* gdbint.texi (Target Conditionals): Remove documentation
of and references to DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS,
gdbarch_extract_return_value, and gdbarch_store_return_value.
Diffstat (limited to 'gdb/arch-utils.c')
-rw-r--r-- | gdb/arch-utils.c | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/gdb/arch-utils.c b/gdb/arch-utils.c index a21e997..4ef616a 100644 --- a/gdb/arch-utils.c +++ b/gdb/arch-utils.c @@ -36,47 +36,6 @@ #include "floatformat.h" -int -always_use_struct_convention (int gcc_p, struct type *value_type) -{ - return 1; -} - -enum return_value_convention -legacy_return_value (struct gdbarch *gdbarch, struct type *valtype, - struct regcache *regcache, gdb_byte *readbuf, - const gdb_byte *writebuf) -{ - /* NOTE: cagney/2004-06-13: The gcc_p parameter to - USE_STRUCT_CONVENTION isn't used. */ - int struct_return = ((TYPE_CODE (valtype) == TYPE_CODE_STRUCT - || TYPE_CODE (valtype) == TYPE_CODE_UNION - || TYPE_CODE (valtype) == TYPE_CODE_ARRAY) - && gdbarch_deprecated_use_struct_convention - (gdbarch, 0, valtype)); - - if (writebuf != NULL) - { - gdb_assert (!struct_return); - /* NOTE: cagney/2004-06-13: See stack.c:return_command. Old - architectures don't expect store_return_value to handle small - structures. Should not be called with such types. */ - gdb_assert (TYPE_CODE (valtype) != TYPE_CODE_STRUCT - && TYPE_CODE (valtype) != TYPE_CODE_UNION); - gdbarch_store_return_value (gdbarch, valtype, regcache, writebuf); - } - - if (readbuf != NULL) - { - gdb_assert (!struct_return); - gdbarch_extract_return_value (gdbarch, valtype, regcache, readbuf); - } - - if (struct_return) - return RETURN_VALUE_STRUCT_CONVENTION; - else - return RETURN_VALUE_REGISTER_CONVENTION; -} int legacy_register_sim_regno (int regnum) |