2008-06-06 Paul Pluzhnikov <ppluzhnikov@google.com>
PR gdb/1147 * gdb/valopts.c (find_overload_match): Handle references to pointers.
This commit is contained in:
parent
fbc5282e75
commit
fed276330d
@ -1,3 +1,9 @@
|
||||
2008-06-06 Paul Pluzhnikov <ppluzhnikov@google.com>
|
||||
|
||||
PR gdb/1147
|
||||
* gdb/valopts.c (find_overload_match): Handle references
|
||||
to pointers.
|
||||
|
||||
2008-06-06 Paul N. Hilfinger <hilfinger@adacore.com>
|
||||
|
||||
* ada-lang.c (ada_value_assign): Correct big-endian case to take into
|
||||
|
@ -2101,7 +2101,8 @@ find_overload_match (struct type **arg_types, int nargs,
|
||||
if (objp)
|
||||
{
|
||||
if (TYPE_CODE (value_type (temp)) != TYPE_CODE_PTR
|
||||
&& TYPE_CODE (value_type (*objp)) == TYPE_CODE_PTR)
|
||||
&& (TYPE_CODE (value_type (*objp)) == TYPE_CODE_PTR
|
||||
|| TYPE_CODE (value_type (*objp)) == TYPE_CODE_REF))
|
||||
{
|
||||
temp = value_addr (temp);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user