diff options
author | Paul Pluzhnikov <ppluzhnikov@google.com> | 2008-06-06 18:29:00 +0000 |
---|---|---|
committer | Paul Pluzhnikov <ppluzhnikov@google.com> | 2008-06-06 18:29:00 +0000 |
commit | fed276330df0721afc7f3df134e958ce4633aa4d (patch) | |
tree | 3015bd9b7bac9faaf044001fc084868534514fd4 /gdb/valops.c | |
parent | fbc5282e75fa56221db28526a0403577c03951c8 (diff) | |
download | gdb-fed276330df0721afc7f3df134e958ce4633aa4d.zip gdb-fed276330df0721afc7f3df134e958ce4633aa4d.tar.gz gdb-fed276330df0721afc7f3df134e958ce4633aa4d.tar.bz2 |
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.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/valops.c b/gdb/valops.c index 3ddee90..f720ea9 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); } |