S390: Add syscall info for syscalls up to 374
[deliverable/binutils-gdb.git] / gdb / cp-support.c
index a14455a8c71235df0a1d6fa84c6a24ba73113455..a71c6ad722743d982bd07869e08176e07388dda9 100644 (file)
@@ -1,5 +1,5 @@
 /* Helper routines for C++ support in GDB.
-   Copyright (C) 2002-2015 Free Software Foundation, Inc.
+   Copyright (C) 2002-2016 Free Software Foundation, Inc.
 
    Contributed by MontaVista Software.
 
@@ -1037,8 +1037,13 @@ cp_find_first_component_aux (const char *name, int permissive)
              return strlen (name);
            }
        case '\0':
-       case ':':
          return index;
+       case ':':
+         /* ':' marks a component iff the next character is also a ':'.
+            Otherwise it is probably malformed input.  */
+         if (name[index + 1] == ':')
+           return index;
+         break;
        case 'o':
          /* Operator names can screw up the recursion.  */
          if (operator_possible
This page took 0.023718 seconds and 4 git commands to generate.