This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [testsuite] gdb.c++/templates.exp
- From: Daniel Berlin <dberlin at dberlin dot org>
- To: Michael Elizabeth Chastain <mec at shout dot net>
- Cc: gdb-patches at sources dot redhat dot com,mludvig at suse dot cz
- Date: Wed, 9 Jul 2003 11:15:58 -0400
- Subject: Re: [testsuite] gdb.c++/templates.exp
- References: <200307091505.h69F5WkH023634@duracef.shout.net>
On Wednesday, July 9, 2003, at 11:05 AM, Michael Elizabeth Chastain
wrote:
Hi Michal,
This part is not quite correct:
\\(unsigned ?(long|)\\);
It would accept 'unsignedlong' which would be wrong.
It shouldn't, unless the regex isn't whitespace sensitive
Can you try:
\\(unsigned( long|)\\);
Now *this* would accept unsignedlong, unless the regexps in expect are
unlike any other system i've seen.
This is because the alternation would be between " long" and "", *not*
"long" and "" (IE your regex would not be equivalent to
<space>long|<space>