diff options
author | Andrew Cagney <cagney@redhat.com> | 2002-07-03 21:27:55 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2002-07-03 21:27:55 +0000 |
commit | f936db1fd71fbcb562b7c904a628b5df90d2e481 (patch) | |
tree | 74ad4e690c18124212ed13b3e5d193d76da5bf1e /gdb/arch-utils.c | |
parent | 048f81d0aa3130149d8a10be1a0fa3e0665f8c85 (diff) | |
download | gdb-f936db1fd71fbcb562b7c904a628b5df90d2e481.tar.gz |
* gdbarch.sh (struct regcache): Add opaque declaration.
(EXTRACT_RETURN_VALUE): New architecture method.
(EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
* gdbarch.h, gdbarch.c: Regenerate.
* arch-utils.c (legacy_extract_return_value): New function.
* arch-utils.h (legacy_extract_return_value): Declare.
* values.c (value_being_returned): Re-enable code handling
EXTRACT_STRUCT_VALUE_ADDRESS. Move
deprecated_grub_regcache_for_registers call to block handling
DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
(EXTRACT_RETURN_VALUE): Do not define.
Diffstat (limited to 'gdb/arch-utils.c')
-rw-r--r-- | gdb/arch-utils.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/arch-utils.c b/gdb/arch-utils.c index 2237fe1cb88..b79a02a76ab 100644 --- a/gdb/arch-utils.c +++ b/gdb/arch-utils.c @@ -91,6 +91,16 @@ legacy_breakpoint_from_pc (CORE_ADDR * pcptr, int *lenptr) return NULL; } +/* Implementation of extract return value that grubs around in the + register cache. */ +void +legacy_extract_return_value (struct type *type, struct regcache *regcache, + char *valbuf) +{ + char *registers = deprecated_grub_regcache_for_registers (regcache); + DEPRECATED_EXTRACT_RETURN_VALUE (type, registers, valbuf); +} + int legacy_register_sim_regno (int regnum) { |