summaryrefslogtreecommitdiff
path: root/gdb/valops.c
diff options
context:
space:
mode:
authorPaul Pluzhnikov <ppluzhnikov@google.com>2008-06-06 18:29:00 +0000
committerPaul Pluzhnikov <ppluzhnikov@google.com>2008-06-06 18:29:00 +0000
commit7f5cb6015e209adc2a8d1ea6a7127ef94ee15821 (patch)
tree74cdba7d8f13fe828fda485f148c15ae1ba1fc55 /gdb/valops.c
parent27b9a1b09ccf3facd34d85a7b71de199a01bf182 (diff)
downloadgdb-7f5cb6015e209adc2a8d1ea6a7127ef94ee15821.tar.gz
2008-06-06 Paul Pluzhnikov <ppluzhnikov@google.com>
PR gdb/1147 * gdb/valopts.c (find_overload_match): Handle references to pointers.
Diffstat (limited to 'gdb/valops.c')
-rw-r--r--gdb/valops.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/valops.c b/gdb/valops.c
index 3ddee90ee6d..f720ea92db2 100644
--- a/gdb/valops.c
+++ b/gdb/valops.c
@@ -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);
}