This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: RFA: patch to fix gdb/1680
On Fri, Jun 18, 2004 at 03:56:42PM -0400, Andrew Cagney wrote:
> >>Try "{}" instead of {""}. In these sorts of situtations that works a
> >>>lot better.
> >
> >
> >which is the missing bit of my suggestion. { and \{ are the same thing
> >when written in double quotes. So (since we can't use {} here, because
> >there is a variable substitution inside gdb_test's argument), use two
> >backslashes. That way one will reach the regex engine.
>
> (two many quote characters). Use ``{ ... }'' instead of ``" ... "''
> when wrapping things up, it avoids the entire quoting et.al. problem.
I wrote:
> >when written in double quotes. So (since we can't use {} here, because
> >there is a variable substitution inside gdb_test's argument), use two
If we use { }, the $r will not be expanded, and the test will not work.
We can't use { } for this.
--
Daniel Jacobowitz