gdb/
authorDaniel Jacobowitz <drow@false.org>
Thu, 13 Jul 2006 04:31:42 +0000 (04:31 +0000)
committerDaniel Jacobowitz <drow@false.org>
Thu, 13 Jul 2006 04:31:42 +0000 (04:31 +0000)
commitfb933624929d0716f25db8d1096557e7f5e72440
treee216dad7d0d61e68304e7ab329fe58c5c850799b
parentd49c44d5f19771810279034d93060d13c13f0937
gdb/
* infcall.c (value_arg_coerce): Use value_cast_pointers for
references.  Avoid value_cast to a reference type.  Don't silently
convert pointers to references.
* valops.c (value_cast_pointers): New, based on value_cast.
(value_cast): Use it.  Reject reference types.
(value_ref): New.
(typecmp): Use it.
* value.h (value_cast_pointers, value_ref): New prototypes.
gdb/testsuite/
* gdb.cp/ref-params.exp: New test.
* gdb.cp/ref-params.cc: New source file.
* gdb.cp/Makefile.in (EXECUTABLES): Add ref-params.
gdb/ChangeLog
gdb/infcall.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.cp/Makefile.in
gdb/testsuite/gdb.cp/ref-params.cc [new file with mode: 0644]
gdb/testsuite/gdb.cp/ref-params.exp [new file with mode: 0644]
gdb/valops.c
gdb/value.h