PR symtab/12704
[deliverable/binutils-gdb.git] / gdb / linespec.c
index dcb80ff3823ec8ec3e6c1dcae54b05d162eab284..8ee721b239948fbd6cca3984ec6fe19efe401217 100644 (file)
@@ -1430,8 +1430,15 @@ decode_compound (char **argptr, int funfirstline,
            {
              /* PASS2: We'll keep getting here, until P points to one of the
                 break characters, at which point we exit this loop.  */
-             if (*p && strchr (break_characters, *p) == NULL)
-               p++;
+             if (*p)
+               {
+                 if (p[1] == '('
+                     && strncmp (&p[1], CP_ANONYMOUS_NAMESPACE_STR,
+                                 CP_ANONYMOUS_NAMESPACE_LEN) == 0)
+                   p += CP_ANONYMOUS_NAMESPACE_LEN;
+                 else if (strchr (break_characters, *p) == NULL)
+                   ++p;
+               }
            }
        }
 
This page took 0.023144 seconds and 4 git commands to generate.