This is the mail archive of the gdb-prs@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

gdb/33: name matching on template names is sensitive to white space



>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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]