This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Fix a bug in tstatus.exp matching tstatus output
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Yao Qi <yao at codesourcery dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 4 Mar 2013 11:22:48 -0500
- Subject: Re: [PATCH] Fix a bug in tstatus.exp matching tstatus output
- References: <1362411345-22308-1-git-send-email-yao@codesourcery.com>
> In gdb testsuite, both "\\\(" and "\\(" are used. After reading
> section "4.3. Backslashes" in book "Exploring Expect", I think they
> are the same on effect.
I don't understand why the third backslash would be needed, though.
The first two is the backslash escaping the '(' character in the
regular expression. The third one escapes the '(' as the TCL string
level, but I don't think it is a special character (like '[' is,
for instance), is it?
--
Joel