From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18075 invoked by alias); 1 May 2009 08:18:47 -0000 Received: (qmail 18064 invoked by uid 22791); 1 May 2009 08:18:46 -0000 X-SWARE-Spam-Status: No, hits=-0.8 required=5.0 tests=AWL,BAYES_40,HK_OBFDOM X-Spam-Check-By: sourceware.org Received: from mailhost.u-strasbg.fr (HELO mailhost.u-strasbg.fr) (130.79.200.157) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 01 May 2009 08:18:42 +0000 Received: from baal.u-strasbg.fr (baal.u-strasbg.fr [IPv6:2001:660:2402::41]) by mailhost.u-strasbg.fr (8.14.2/jtpda-5.5pre1) with ESMTP id n418HXqR053064 ; Fri, 1 May 2009 10:17:33 +0200 (CEST) Received: from mailserver.u-strasbg.fr (ms3.u-strasbg.fr [IPv6:2001:660:2402:d::12]) by baal.u-strasbg.fr (8.14.0/jtpda-5.5pre1) with ESMTP id n418HWx6080206 ; Fri, 1 May 2009 10:17:33 +0200 (CEST) (envelope-from muller@ics.u-strasbg.fr) Received: from d620muller (lec67-4-82-230-53-140.fbx.proxad.net [82.230.53.140]) (user=mullerp mech=LOGIN) by mailserver.u-strasbg.fr (8.14.3/jtpda-5.5pre1) with ESMTP id n418HVmt092478 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) ; Fri, 1 May 2009 10:17:32 +0200 (CEST) (envelope-from muller@ics.u-strasbg.fr) From: "Pierre Muller" To: "'Daniel Jacobowitz'" , "'Tom Tromey'" , "'Joel Brobecker'" Cc: References: <001901c9c399$81854fe0$848fefa0$@u-strasbg.fr> <002a01c9c3df$d77f5760$867e0620$@u-strasbg.fr> <007501c9c533$d0a9c240$71fd46c0$@u-strasbg.fr> In-Reply-To: <007501c9c533$d0a9c240$71fd46c0$@u-strasbg.fr> Subject: RE: [RFC] Change OK: to ARI: for ARI rule ignore Date: Fri, 01 May 2009 08:18:00 -0000 Message-ID: <013301c9ca35$482bd780$d8838680$@u-strasbg.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-05/txt/msg00008.txt.bz2 Sorry about this, Daniel. It is just that I do have the bad habit of thinking of '-p' and '-u' options together, and '-p' isn't very useful when it's not C code... Here is that unified diff. Is this OK for everyone? Pierre Muller Pascal language support maintainer for GDB $ cvs diff -u gdb_ari.sh Index: gdb_ari.sh =================================================================== RCS file: /cvs/gdbadmin/ss/gdb_ari.sh,v retrieving revision 1.89 diff -u -r1.89 gdb_ari.sh --- gdb_ari.sh 20 Apr 2009 15:55:23 -0000 1.89 +++ gdb_ari.sh 1 May 2009 08:13:59 -0000 @@ -147,6 +147,9 @@ exit } + if (ARI_OK == bug) { + return + } # Trim the filename down to just DIRECTORY/FILE so that it can be # robustly used by the FIX code. @@ -205,8 +208,21 @@ # Skip OBSOLETE lines /(^|[^_[:alnum:]])OBSOLETE([^_[:alnum:]]|$)/ { next; } -# Skip OK lines -/\/\* OK \*\// || /\/\* OK: / || /\/\* ARI: / { next; } +# Skip ARI lines + +BEGIN { + ARI_OK = "" +} + +/\/\* ARI:[[:space:]]*(.*)[[:space:]]*\*\// { + ARI_OK = gensub(/^.*\/\* ARI:[[:space:]]*(.*[^[:space:]])[[:space:]]*\*\/.*$/, "\\1", 1, $0) + # print "ARI line found \"" $0 "\"" + # print "ARI_OK \"" ARI_OK "\"" +} +! /\/\* ARI:[[:space:]]*(.*)[[:space:]]*\*\// { + ARI_OK = "" +} + # Things in comments