]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* c-typeprint.c (is_type_conversion_operator): Add additional
authorDaniel Jacobowitz <drow@false.org>
Wed, 16 Jan 2002 02:43:38 +0000 (02:43 +0000)
committerDaniel Jacobowitz <drow@false.org>
Wed, 16 Jan 2002 02:43:38 +0000 (02:43 +0000)
        check for non-conversion operators.

gdb/ChangeLog
gdb/c-typeprint.c

index e63c577ca88db03ebc2d014e6ef1ae10bc8cb8b4..76fa8883b347c53fccc54ed78190dccc755e3533 100644 (file)
@@ -1,3 +1,8 @@
+2002-01-15  Daniel Jacobowitz  <drow@mvista.com>
+
+       * c-typeprint.c (is_type_conversion_operator): Add additional
+       check for non-conversion operators.
+
 2002-01-15  Michael Snyder  <msnyder@redhat.com>
 
        * linux-proc.c: Add "info proc" command, a la procfs.c.
index ce7fbe0de1097101b7cb7c83868f93cdcde21d51..a202db437b24fe3bc329e4903d5f59a29cab8ba4 100644 (file)
@@ -402,7 +402,13 @@ is_type_conversion_operator (struct type *type, int i, int j)
   while (strchr (" \t\f\n\r", *name))
     name++;
 
-  if (strncmp (name, "new", 3) == 0)
+  if (!('a' <= *name && *name <= 'z')
+      && !('A' <= *name && *name <= 'Z')
+      && *name != '_')
+    /* If this doesn't look like the start of an identifier, then it
+       isn't a type conversion operator.  */
+    return 0;
+  else if (strncmp (name, "new", 3) == 0)
     name += 3;
   else if (strncmp (name, "delete", 6) == 0)
     name += 6;