aboutsummaryrefslogtreecommitdiff
path: root/gdb/arm-tdep.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2002-09-05 19:05:59 +0000
committerMichael Snyder <msnyder@vmware.com>2002-09-05 19:05:59 +0000
commit95f959112a99a582e75918bbbeb414d1bc374316 (patch)
tree297deff966affc5186880d0f75188952246292ff /gdb/arm-tdep.c
parenta90c3637c992d771a1c313bb7cd8067a462479ff (diff)
downloadgdb-95f959112a99a582e75918bbbeb414d1bc374316.zip
gdb-95f959112a99a582e75918bbbeb414d1bc374316.tar.gz
gdb-95f959112a99a582e75918bbbeb414d1bc374316.tar.bz2
2002-09-05 Michael Snyder <msnyder@redhat.com>
* arm-tdep.c (arm_extract_return_value): Use new regcache method.
Diffstat (limited to 'gdb/arm-tdep.c')
-rw-r--r--gdb/arm-tdep.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c
index c84c3c6..e61c593 100644
--- a/gdb/arm-tdep.c
+++ b/gdb/arm-tdep.c
@@ -2283,9 +2283,12 @@ arm_extract_return_value (struct type *type,
the address in which a function should return its structure value. */
static CORE_ADDR
-arm_extract_struct_value_address (char *regbuf)
+arm_extract_struct_value_address (struct regcache *regcache)
{
- return extract_address (regbuf, REGISTER_RAW_SIZE(ARM_A1_REGNUM));
+ ULONGEST ret;
+
+ regcache_cooked_read_unsigned (regcache, ARM_A1_REGNUM, &ret);
+ return ret;
}
/* Will a function return an aggregate type in memory or in a
@@ -2933,7 +2936,7 @@ arm_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
set_gdbarch_deprecated_store_return_value (gdbarch, arm_store_return_value);
set_gdbarch_store_struct_return (gdbarch, arm_store_struct_return);
set_gdbarch_use_struct_convention (gdbarch, arm_use_struct_convention);
- set_gdbarch_deprecated_extract_struct_value_address (gdbarch,
+ set_gdbarch_extract_struct_value_address (gdbarch,
arm_extract_struct_value_address);
/* Single stepping. */