OSDN Git Service

* eval.c (evaluate_subexp_for_address): Clarify error message.
authorDaniel Jacobowitz <dan@debian.org>
Fri, 21 Mar 2008 15:02:38 +0000 (15:02 +0000)
committerDaniel Jacobowitz <dan@debian.org>
Fri, 21 Mar 2008 15:02:38 +0000 (15:02 +0000)
commit78dafbf43015a8c35a18cc27e3ca5175b448c124
tree6b5256ed6b00cb067bd930b77a45d36e14636a3e
parent2d6daee8f00b4f9fec1928781367d46017c1a181
* eval.c (evaluate_subexp_for_address): Clarify error message.
Use value_must_coerce_to_target.
* infcall.c (value_arg_coerce): Call value_coerce_to_target.
* valops.c (value_assign): Call value_coerce_to_target when
assigning to anything but internalvars.  Leave GDB-side arrays
as arrays when assigning to internalvars.
(value_must_coerce_to_target, value_coerce_to_target): New.
(value_coerce_array, value_addr): Call value_coerce_to_target.
(value_array): Create the array in GDB's memory instead of
the inferior's.
* value.h (value_must_coerce_to_target, value_coerce_to_target):
Declare.

* gdb.texinfo (Expressions): Update description of malloced arrays.

* gdb.base/printcmds.exp (test_print_array_constants): Do not expect
*& to work on created array elements.
(Top level): Test print $pc with a file.  Test string operations
without a target.
* gdb.base/ptype.exp: Do not expect *& to work on created array
elements.
gdb/ChangeLog
gdb/doc/ChangeLog
gdb/doc/gdb.texinfo
gdb/eval.c
gdb/infcall.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/printcmds.exp
gdb/testsuite/gdb.base/ptype.exp
gdb/valops.c
gdb/value.h