]> Git Repo - binutils.git/commitdiff
2008-06-06 Paul Pluzhnikov <[email protected]>
authorPaul Pluzhnikov <[email protected]>
Fri, 6 Jun 2008 18:29:00 +0000 (18:29 +0000)
committerPaul Pluzhnikov <[email protected]>
Fri, 6 Jun 2008 18:29:00 +0000 (18:29 +0000)
PR gdb/1147
* gdb/valopts.c (find_overload_match): Handle references
to pointers.

gdb/ChangeLog
gdb/valops.c

index f17ed4007b947fdbbba9c7a8f31e9dd1fed84b21..897ee48a1d0a5a4d377c14ba19e5fd423770957a 100644 (file)
@@ -1,3 +1,9 @@
+2008-06-06  Paul Pluzhnikov  <[email protected]>
+
+       PR gdb/1147
+       * gdb/valopts.c (find_overload_match): Handle references
+       to pointers.
+
 2008-06-06  Paul N. Hilfinger  <[email protected]>
 
        * ada-lang.c (ada_value_assign): Correct big-endian case to take into
index 3ddee90ee6dd6aa257f401826ce3499eb1ae8c93..f720ea92db280cd30732aee923dca7d2eb078726 100644 (file)
@@ -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);
        }
This page took 0.03956 seconds and 4 git commands to generate.