From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25138 invoked by alias); 6 Mar 2008 22:08:31 -0000 Received: (qmail 25129 invoked by uid 22791); 6 Mar 2008 22:08:30 -0000 X-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_64,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 06 Mar 2008 22:08:12 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id m26M8AKK005222 for ; Thu, 6 Mar 2008 17:08:10 -0500 Received: from pobox-3.corp.redhat.com (pobox-3.corp.redhat.com [10.11.255.67]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m26M89Mg024174; Thu, 6 Mar 2008 17:08:09 -0500 Received: from toner.yyz.redhat.com (toner.yyz.redhat.com [10.15.16.55]) by pobox-3.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m26M86sb014564; Thu, 6 Mar 2008 17:08:09 -0500 Message-ID: <47D06B46.509@redhat.com> Date: Thu, 06 Mar 2008 22:08:00 -0000 From: Sami Wagiaalla User-Agent: Thunderbird 2.0.0.12 (X11/20080226) MIME-Version: 1.0 To: Phil Muldoon CC: Frysk Hackers Subject: Re: Patchlet to convert ferror to use regex when matching -e argument References: <47D0257D.9080505@redhat.com> In-Reply-To: <47D0257D.9080505@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.58 on 172.16.52.254 X-IsSubscribed: yes Mailing-List: contact frysk-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: frysk-owner@sourceware.org X-SW-Source: 2008-q1/txt/msg00136.txt.bz2 Phil Muldoon wrote: > Small patch. This converts ferror to pattern match the -e argument over > a straight String.contains(). Useful for looking for more complex search > queries. Worked like a charm. I added a test and committed. swagiaal: ferror patch by pmuldoon for regex support. frysk-core/frysk/bindir/ChangeLog +2008-03-06 Sami Wagiaalla + + * TestFerror.java: Added test for regext argument matching. + +2008-03-06 Phil Muldoon + + * ferror.java (main): Update option text. + (parsed): Do not store argument. Compile into pattern. + (updateSyscallEnter): Use Matcher instead of contains. +