This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
gdb/33: name matching on template names is sensitive to white space
- To: gdb-gnats at sources dot redhat dot com
- Subject: gdb/33: name matching on template names is sensitive to white space
- From: chastain at redhat dot com
- Date: 23 Feb 2001 20:24:34 -0000
- Reply-To: chastain at redhat dot com
>Number: 33
>Category: gdb
>Synopsis: name matching on template names is sensitive to white space
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Feb 23 12:28:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: chastain@redhat.com
>Release: gdb cvs 2001-02-21
>Organization:
>Environment:
Red Hat Linux native
>Description:
lookup_block_symbol calls SYMBOL_MATCHES_NAME
SYMBOL_MATCHES_NAME is whitespace-sensitive for template
names because they are typedefs and have no demangled name.
>How-To-Repeat:
Run the test suite and grab the executable gdb.c++/templates
gdb that executable
(gdb) break main
(gdb) run
(gdb) ptype fvpchar
(gdb) print Foo<volatile char *>::foo
(gdb) print Foo<volatile char*>::foo
Note that there are no single quotes in the print commands.
The "print" command with an exact match will match,
but the "print" command which differs only in whitespace
will not match.
Note that with g++ v2, the type name is "volatile char *";
with g++ v3, the type name is "volatile char*".
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: