This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH v2] Escape paths used in regular expressions
- From: Pedro Alves <palves at redhat dot com>
- To: Zachary T Welch <zwelch at codesourcery dot com>, gdb-patches at sourceware dot org
- Date: Wed, 10 Feb 2016 17:53:34 +0000
- Subject: Re: [PATCH v2] Escape paths used in regular expressions
- Authentication-results: sourceware.org; auth=none
- References: <56BB6967 dot 4070503 at redhat dot com> <1455126461-9616-1-git-send-email-zwelch at codesourcery dot com>
On 02/10/2016 05:47 PM, Zachary T Welch wrote:
> On 02/10/2016 08:46 AM, Pedro Alves wrote:
> ...
>>> * gdb.exp (escape_regex_chars): New.
>>
>> Seems like you reinvented string_to_regexp.
>
> How does this version look?
>
> *gdb.base/maint.exp: Escape paths used in regular expressions.
> * gdb.stabs/weird.exp: Likewise.
>
> Signed-off-by: Zachary T Welch <zwelch@codesourcery.com>
Looks good.
Thanks,
Pedro Alves