This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [PATCH] Handle comments in the C expression parser
- To: dberlin at redhat dot com
- Subject: Re: [PATCH] Handle comments in the C expression parser
- From: Michael Elizabeth Chastain <chastain at cygnus dot com>
- Date: Tue, 13 Feb 2001 21:43:45 -0800
- Cc: gdb-patches at sources dot redhat dot com
Hi Daniel,
> It has to, it's the lexer. It's doing the tokenizing.
Fair enough. What happens here:
(gdb) print /* multi line
comment */ 1 + 2
I bet it gives "unterminated comment" (as soon as you fix the code).
This is a deviation from C, but it doesn't really bother me.
> Not in particular, I added it when someone suggested that, and wanted
> to get it into the tree before it became a casualty of bitrot on one
> of my trees ...
I know the feeling.
If I saw something useful about /* ... */ I'd be in favor, but right
now, I'd just as soon see it scrapped.
Michael