Remove ARI check for multiple calls to warning or error
authorTom Tromey <tromey@adacore.com>
Thu, 12 Dec 2019 17:40:08 +0000 (10:40 -0700)
committerTom Tromey <tromey@adacore.com>
Fri, 13 Dec 2019 22:15:32 +0000 (15:15 -0700)
ARI has a check for multiple calls to warning or error, suggesting
that they be combined into a single call.  This triggers at three
places in gdb -- throw_bad_regnum_error, guile_repl_command, and the
end of value_cast -- and after examining these, I think they all make
sense as-is.  Instead, it makes sense to remove this check from ARI.

gdb/ChangeLog
2019-12-13  Tom Tromey  <tromey@adacore.com>

* contrib/ari/gdb_ari.sh: Remove check for multiple calls to
warning or error.

Change-Id: I0618683623a3c7324460c7b9e5d7f252d88c2e8d

gdb/ChangeLog
gdb/contrib/ari/gdb_ari.sh

index 90c3742e93243be4f822710f2f8e684ec0dd1eab..7d4f982761f2de94d140a5c9a754f52d6cd08d4b 100644 (file)
@@ -1,3 +1,8 @@
+2019-12-13  Tom Tromey  <tromey@adacore.com>
+
+       * contrib/ari/gdb_ari.sh: Remove check for multiple calls to
+       warning or error.
+
 2019-12-13  Tom Tromey  <tromey@adacore.com>
 
        * contrib/ari/gdb_ari.sh: Remove call to "fix" for "long long".
index 5f058906d0a33301f8f528bd2eef694f3164486f..3ed911685db0fecc71a5ddb2c9787a2de94dd4ab 100755 (executable)
@@ -619,21 +619,6 @@ Do not use NORETURN, use ATTRIBUTE_NORETURN instead"
 
 # General problems
 
-BEGIN { doc["multiple messages"] = "\
-Do not use multiple calls to warning or error, instead use a single call"
-    category["multiple messages"] = ari_gettext
-}
-FNR == 1 {
-    warning_fnr = -1
-}
-/(^|[^_[:alnum:]])(warning|error)[[:space:]]*\(/ {
-    if (FNR == warning_fnr + 1) {
-       fail("multiple messages")
-    } else {
-       warning_fnr = FNR
-    }
-}
-
 # Commented out, but left inside sources, just in case.
 # BEGIN { doc["inline"] = "\
 # Do not use the inline attribute; \
This page took 0.030371 seconds and 4 git commands to generate.