OSDN Git Service

* infcmd.c (print_return_value): Remove compatibility code calling
authorcagney <cagney>
Wed, 3 Jul 2002 20:36:53 +0000 (20:36 +0000)
committercagney <cagney>
Wed, 3 Jul 2002 20:36:53 +0000 (20:36 +0000)
commitace8b88cc153c001506536b724a8ea0e3b2c4028
treed35319d1b24a28b56f1acffabc5336a80f1be7ab
parentef00c0516999a8a9585618e447c4222ffc0986ee
* 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.
gdb/ChangeLog
gdb/Makefile.in
gdb/infcmd.c
gdb/inferior.h
gdb/regcache.c
gdb/regcache.h
gdb/valops.c
gdb/value.h
gdb/values.c