aboutsummaryrefslogtreecommitdiff
path: root/gdb/arch-utils.c
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2007-06-18 18:28:29 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2007-06-18 18:28:29 +0000
commit82d1552e979875fc6e25a31800322b46c1dfe02e (patch)
treeef9e46ae352a4ac3e192d42b5a7bbfbd882578db /gdb/arch-utils.c
parentb187c476136b7a8cfb6efa7a772896241be172fe (diff)
downloadgdb-82d1552e979875fc6e25a31800322b46c1dfe02e.zip
gdb-82d1552e979875fc6e25a31800322b46c1dfe02e.tar.gz
gdb-82d1552e979875fc6e25a31800322b46c1dfe02e.tar.bz2
2007-06-18 Markus Deuling <deuling@de.ibm.com>
* gdbarch.sh (EXTRACT_RETURN_VALUE): Replace with gdbarch_extract_return_value. * value.c (generic_use_struct_convention): Likewise (comment). * ia64-tdep.c (ia64_use_struct_convention): Likewise (comment). * arch-utils.c (legacy_return_value): Likewise. * arch-utils.h (legacy_return_value): Likewise (comment). * gdbarch.sh (STORE_RETURN_VALUE): Replace by gdbarch_store_return_value. * stack.c (return_command): Likewise (comment). * arch-utils.h (legacy_return_value): Likewise (comment). * arch-utils.c (legacy_return_value): Likewise. * gdbarch.c, gdbarch.h: Regenerate.
Diffstat (limited to 'gdb/arch-utils.c')
-rw-r--r--gdb/arch-utils.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/arch-utils.c b/gdb/arch-utils.c
index 687dc22..73e4520 100644
--- a/gdb/arch-utils.c
+++ b/gdb/arch-utils.c
@@ -61,17 +61,18 @@ legacy_return_value (struct gdbarch *gdbarch, struct type *valtype,
{
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
+ 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);
- STORE_RETURN_VALUE (valtype, regcache, writebuf);
+ gdbarch_store_return_value (current_gdbarch, valtype, regcache, writebuf);
}
if (readbuf != NULL)
{
gdb_assert (!struct_return);
- EXTRACT_RETURN_VALUE (valtype, regcache, readbuf);
+ gdbarch_extract_return_value (current_gdbarch,
+ valtype, regcache, readbuf);
}
if (struct_return)