diff options
author | Daniel Jacobowitz <drow@false.org> | 2002-01-16 02:43:38 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2002-01-16 02:43:38 +0000 |
commit | b012904272850138ff57e00c55b227b898aba7a0 (patch) | |
tree | e2392247d8b3e1c1fdc643af7df8c1bfcb4e4939 /gdb/c-typeprint.c | |
parent | 335c5610808be4ab30471250c6ed1f82cf97e009 (diff) | |
download | gdb-b012904272850138ff57e00c55b227b898aba7a0.zip gdb-b012904272850138ff57e00c55b227b898aba7a0.tar.gz gdb-b012904272850138ff57e00c55b227b898aba7a0.tar.bz2 |
* c-typeprint.c (is_type_conversion_operator): Add additional
check for non-conversion operators.
Diffstat (limited to 'gdb/c-typeprint.c')
-rw-r--r-- | gdb/c-typeprint.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gdb/c-typeprint.c b/gdb/c-typeprint.c index ce7fbe0..a202db4 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; |