From: Daniel Jacobowitz Date: Wed, 16 Jan 2002 02:43:38 +0000 (+0000) Subject: * c-typeprint.c (is_type_conversion_operator): Add additional X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=b4b65fb57ba9663f6ee0dd3d0fc93b9b6ec81684;p=pf3gnuchains%2Fpf3gnuchains3x.git * c-typeprint.c (is_type_conversion_operator): Add additional check for non-conversion operators. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e63c577ca8..76fa8883b3 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2002-01-15 Daniel Jacobowitz + + * c-typeprint.c (is_type_conversion_operator): Add additional + check for non-conversion operators. + 2002-01-15 Michael Snyder * linux-proc.c: Add "info proc" command, a la procfs.c. diff --git a/gdb/c-typeprint.c b/gdb/c-typeprint.c index ce7fbe0de1..a202db437b 100644 --- a/gdb/c-typeprint.c +++ b/gdb/c-typeprint.c @@ -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;