old-cross-binutils/gdb/testsuite/gdb.cp
Daniel Jacobowitz fb93362492 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.
2006-07-13 04:31:42 +00:00
..
ambiguous.cc
ambiguous.exp
annota2.cc
annota2.exp 2006-03-07 Paul Brook <paul@codesourcery.com> 2006-03-07 15:23:33 +00:00
annota3.cc
annota3.exp 2006-03-07 Paul Brook <paul@codesourcery.com> 2006-03-07 15:23:33 +00:00
anon-union.cc * gdb.base/break.c: Add 10a breakpoint at } 2006-06-13 08:46:17 +00:00
anon-union.exp * gdb.base/break.c: Add 10a breakpoint at } 2006-06-13 08:46:17 +00:00
bool.cc * gdb.cp/bool.cc, gdb.cp/bool.exp: New files. 2006-01-29 21:30:17 +00:00
bool.exp * gdb.cp/bool.cc, gdb.cp/bool.exp: New files. 2006-01-29 21:30:17 +00:00
breakpoint.cc
breakpoint.exp
bs15503.cc
bs15503.exp * ChangeLog: Correct some 2003-01-13 dates. 2005-04-27 16:35:15 +00:00
casts.cc
casts.exp
class2.cc
class2.exp
classes.cc
classes.exp 2004-08-13 Michael Chastain <mec.gnu@mindspring.com> 2004-08-13 08:48:46 +00:00
cplusfuncs.cc
cplusfuncs.exp
ctti.exp 2004-08-15 Michael Chastain <mec.gnu@mindspring.com> 2004-08-15 09:17:30 +00:00
cttiadd.cc
cttiadd1.cc
cttiadd2.cc
cttiadd3.cc
demangle.exp
derivation.cc
derivation.exp 2004-08-09 Michael Chastain <mec.gnu@mindspring.com> 2004-08-09 22:47:50 +00:00
exception.cc
exception.exp * ChangeLog: Correct some 2003-01-13 dates. 2005-04-27 16:35:15 +00:00
gdb1355.cc
gdb1355.exp
hang.exp
hang.H
hang1.C
hang2.C
hang3.C
inherit.exp gdb/ 2006-03-01 19:34:46 +00:00
local.cc
local.exp
m-data.cc
m-data.exp
m-static.cc * gdb.cp/m-static.h (class gnu_obj_4): Add dummy member. 2006-05-05 18:04:09 +00:00
m-static.exp 2004-08-15 Michael Chastain <mec.gnu@mindspring.com> 2004-08-15 09:17:30 +00:00
m-static.h * gdb.cp/m-static.h (class gnu_obj_4): Add dummy member. 2006-05-05 18:04:09 +00:00
m-static1.cc
maint.exp * gdb.cp/maint.exp: Set complaints to a positive value. 2006-01-20 23:08:48 +00:00
Makefile.in gdb/ 2006-07-13 04:31:42 +00:00
member-ptr.cc
member-ptr.exp
method.cc
method.exp
misc.cc
misc.exp
namespace.cc
namespace.exp 2004-07-31 Michael Chastain <mec.gnu@mindspring.com> 2004-08-01 01:03:47 +00:00
namespace1.cc
overload.cc
overload.exp
ovldbreak.cc
ovldbreak.exp * gdb.cp/ovldbreak.exp: Adjust regular expression for recent 2005-03-05 13:31:26 +00:00
pr-574.cc 2004-06-18 Michael Chastain <mec.gnu@mindspring.com> 2004-06-18 14:24:54 +00:00
pr-574.exp
pr-1023.cc
pr-1023.exp
pr-1210.cc
pr-1210.exp
printmethod.cc gdb/ 2005-12-07 23:07:54 +00:00
printmethod.exp gdb/ 2005-12-07 23:07:54 +00:00
psmang.exp
psmang1.cc 2004-06-16 Michael Chastain <mec.gnu@mindspring.com> 2004-06-17 04:28:22 +00:00
psmang2.cc 2004-06-16 Michael Chastain <mec.gnu@mindspring.com> 2004-06-17 04:28:22 +00:00
ref-params.cc gdb/ 2006-07-13 04:31:42 +00:00
ref-params.exp gdb/ 2006-07-13 04:31:42 +00:00
ref-types.cc 2004-06-14 Michael Chastain <mec.gnu@mindspring.com> 2004-06-14 16:30:16 +00:00
ref-types.exp
rtti.exp 2004-08-15 Michael Chastain <mec.gnu@mindspring.com> 2004-08-15 09:17:30 +00:00
rtti.h
rtti1.cc
rtti2.cc
templates.cc
templates.exp * gdb.cp/templates.exp: Handle (char)115 for template argument 's'. 2004-08-09 13:15:26 +00:00
try_catch.cc 2004-06-13 Michael Chastain <mec.gnu@mindspring.com> 2004-06-13 16:07:02 +00:00
try_catch.exp
userdef.cc * ChangeLog: Correct some 2003-01-13 dates. 2005-04-27 16:35:15 +00:00
userdef.exp * ChangeLog: Correct some 2003-01-13 dates. 2005-04-27 16:35:15 +00:00
virtfunc.cc
virtfunc.exp 2004-08-09 Michael Chastain <mec.gnu@mindspring.com> 2004-08-09 22:47:50 +00:00