diff options
author | Andrew Cagney <cagney@redhat.com> | 2002-07-03 20:36:54 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2002-07-03 20:36:54 +0000 |
commit | 36160dc4b2bf0b2f8341f8f017ea606adfcac332 (patch) | |
tree | 54f3da9959241f17896fa3667cc20097a5915d5f /gdb/values.c | |
parent | 4dd79c29b4a65ae1ff861c3e9d42f190f6846770 (diff) | |
download | gdb-36160dc4b2bf0b2f8341f8f017ea606adfcac332.zip gdb-36160dc4b2bf0b2f8341f8f017ea606adfcac332.tar.gz gdb-36160dc4b2bf0b2f8341f8f017ea606adfcac332.tar.bz2 |
* infcmd.c (print_return_value): Remove compatibility code calling
deprecated_grub_regcache_for_registers.
* values.c: Include "regcache.h".
(value_being_returned): Update. Use
deprecated_grub_regcache_for_registers to extract the register
buffer address.
* value.h (value_being_returned): Change ``retbuf'' parameter to a
``struct regcache''.
* Makefile.in (values.o): Add dependency on $(regcache_h).
* inferior.h (run_stack_dummy): Change type of second parameter to
a ``struct regcache''.
* valops.c (hand_function_call): Change type of retbuf to ``struct
regcache''. Allocate using regcache_xmalloc, clean using
make_cleanup_regcache_xfree.
* infcmd.c (run_stack_dummy): Update. Use
regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
* regcache.c (do_regcache_xfree): New function.
(make_cleanup_regcache_xfree): New function.
* regcache.h (make_cleanup_regcache_xfree): Declare.
Diffstat (limited to 'gdb/values.c')
-rw-r--r-- | gdb/values.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/values.c b/gdb/values.c index 28f0f4f..3c577f3 100644 --- a/gdb/values.c +++ b/gdb/values.c @@ -34,6 +34,7 @@ #include "demangle.h" #include "doublest.h" #include "gdb_assert.h" +#include "regcache.h" /* Prototypes for exported functions. */ @@ -1224,8 +1225,10 @@ value_from_double (struct type *type, DOUBLEST num) /* ARGSUSED */ struct value * -value_being_returned (struct type *valtype, char *retbuf, int struct_return) +value_being_returned (struct type *valtype, struct regcache *buf, + int struct_return) { + char *retbuf = deprecated_grub_regcache_for_registers (buf); struct value *val; CORE_ADDR addr; |