aboutsummaryrefslogtreecommitdiff
path: root/gdb/contrib/ari
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2019-12-12 10:40:08 -0700
committerTom Tromey <tromey@adacore.com>2019-12-13 15:15:32 -0700
commit234c306803e0b3c423b3935562a029f3bad04482 (patch)
tree97bc17a11f0230d003dd5d0a69ea5b11474bde3d /gdb/contrib/ari
parent93537683e79f8a55c51ffa00008966e32ee8e4a7 (diff)
downloadgdb-234c306803e0b3c423b3935562a029f3bad04482.zip
gdb-234c306803e0b3c423b3935562a029f3bad04482.tar.gz
gdb-234c306803e0b3c423b3935562a029f3bad04482.tar.bz2
Remove ARI check for multiple calls to warning or error
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
Diffstat (limited to 'gdb/contrib/ari')
-rwxr-xr-xgdb/contrib/ari/gdb_ari.sh15
1 files changed, 0 insertions, 15 deletions
diff --git a/gdb/contrib/ari/gdb_ari.sh b/gdb/contrib/ari/gdb_ari.sh
index 5f05890..3ed9116 100755
--- a/gdb/contrib/ari/gdb_ari.sh
+++ b/gdb/contrib/ari/gdb_ari.sh
@@ -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; \