This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
RE: [RFC] Change OK: to ARI: for ARI rule ignore
- From: "Pierre Muller" <muller at ics dot u-strasbg dot fr>
- To: "'Daniel Jacobowitz'" <drow at false dot org>, "'Tom Tromey'" <tromey at redhat dot com>, "'Joel Brobecker'" <brobecker at adacore dot com>
- Cc: <gdb-patches at sourceware dot org>
- Date: Fri, 1 May 2009 10:17:33 +0200
- Subject: RE: [RFC] Change OK: to ARI: for ARI rule ignore
- References: <001901c9c399$81854fe0$848fefa0$@u-strasbg.fr> <m3ab68tfta.fsf@fleche.redhat.com> <002a01c9c3df$d77f5760$867e0620$@u-strasbg.fr> <m3y6trqll8.fsf@fleche.redhat.com> <007501c9c533$d0a9c240$71fd46c0$@u-strasbg.fr>
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