Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* New ARI warning Thu Jan  6 01:53:36 UTC 2011
@ 2011-01-06  1:53 GDB Administrator
  2011-01-06  9:32 ` Joel Brobecker
  0 siblings, 1 reply; 2+ messages in thread
From: GDB Administrator @ 2011-01-06  1:53 UTC (permalink / raw)
  To: gdb-patches

521,522d520
< gdb/linespec.c:1456: gettext: trailing new line: A message should not have a trailing new line
gdb/linespec.c:1456:	      error (_("the class `%s' does not have any method instance named %s\n"),
< gdb/linespec.c:1618: gettext: trailing new line: A message should not have a trailing new line
gdb/linespec.c:1618:	  error (_("the class `%s' does not have any method instance named %s\n"),
1073a1072
> gdb/solib-irix.c:575: gettext: _ markup: All messages should be marked up with _.
gdb/solib-irix.c:575:	      warning ("current_sos: truncating name of "
1321a1321
> gdb/varobj.c:2063: gettext: _ markup: All messages should be marked up with _.
gdb/varobj.c:2063:	      warning ("Assertion failed: Could not find "


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: New ARI warning Thu Jan  6 01:53:36 UTC 2011
  2011-01-06  1:53 New ARI warning Thu Jan 6 01:53:36 UTC 2011 GDB Administrator
@ 2011-01-06  9:32 ` Joel Brobecker
  0 siblings, 0 replies; 2+ messages in thread
From: Joel Brobecker @ 2011-01-06  9:32 UTC (permalink / raw)
  To: gdb-patches

[-- Attachment #1: Type: text/plain, Size: 290 bytes --]

> 521,522d520
> < gdb/linespec.c:1456: gettext: trailing new line: A message should not have a trailing new line
[...]

All ARI violations reported in this email should be taken care of
with the attached patch.

Tested on x86_64-linux (rebuilding solib-irix.c only).  Checked in.

-- 
Joel

[-- Attachment #2: ari-warnings.diff --]
[-- Type: text/x-diff, Size: 2677 bytes --]

commit fd2e675aedc299242ad4d2a454e4cb60ee9ecf3c
Author: Joel Brobecker <brobecker@adacore.com>
Date:   Thu Jan 6 13:28:41 2011 +0400

    Remove trailing new-line at end of error string
    
    gdb/ChangeLog:
    
    	* linespec.c (decode_compound, find_method): Remove trailing \n
    	at end of error string.
    	* solib-irix.c (irix_current_sos): Likewise.
    	* varobj.c (uninstall_variable): Likewise.

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 60676a3..42e77dc 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,12 @@
 2011-01-06  Joel Brobecker  <brobecker@adacore.com>
 
+	* linespec.c (decode_compound, find_method): Remove trailing \n
+	at end of error string.
+	* solib-irix.c (irix_current_sos): Likewise.
+	* varobj.c (uninstall_variable): Likewise.
+
+2011-01-06  Joel Brobecker  <brobecker@adacore.com>
+
 	* copyright.py: New script.
 	* copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
 	Launch emacs without exec'ing. Call copyright.py afterwards.
diff --git a/gdb/linespec.c b/gdb/linespec.c
index dffbb36..ae48de7 100644
--- a/gdb/linespec.c
+++ b/gdb/linespec.c
@@ -1460,7 +1460,7 @@ decode_compound (char **argptr, int funfirstline, char ***canonical,
 	    {
 	      xfree (values.sals);
 	      error (_("the class `%s' does not have "
-		       "any method instance named %s\n"),
+		       "any method instance named %s"),
 		     SYMBOL_PRINT_NAME (sym_class), copy);
 	    }
 	}
@@ -1625,7 +1625,7 @@ find_method (int funfirstline, char ***canonical, char *saved_arg,
 	    }
 
 	  error (_("the class `%s' does not have "
-		   "any method instance named %s\n"),
+		   "any method instance named %s"),
 		 SYMBOL_PRINT_NAME (sym_class), copy);
 	}
 
diff --git a/gdb/solib-irix.c b/gdb/solib-irix.c
index f233d4a..bd577a0 100644
--- a/gdb/solib-irix.c
+++ b/gdb/solib-irix.c
@@ -572,8 +572,8 @@ irix_current_sos (void)
 	  if (name_size >= SO_NAME_MAX_PATH_SIZE)
 	    {
 	      name_size = SO_NAME_MAX_PATH_SIZE - 1;
-	      warning ("current_sos: truncating name of "
-		       "%d characters to only %d characters",
+	      warning (_("current_sos: truncating name of "
+		         "%d characters to only %d characters"),
 		       lm.pathname_len, name_size);
 	    }
 
diff --git a/gdb/varobj.c b/gdb/varobj.c
index 8cfcccf..1792c2e 100644
--- a/gdb/varobj.c
+++ b/gdb/varobj.c
@@ -2060,8 +2060,8 @@ uninstall_variable (struct varobj *var)
 	    }
 	  if (cr == NULL)
 	    {
-	      warning ("Assertion failed: Could not find "
-		       "varobj \"%s\" in root list",
+	      warning (_("Assertion failed: Could not find "
+		         "varobj \"%s\" in root list"),
 		       var->obj_name);
 	      return;
 	    }

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-01-06  9:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-06  1:53 New ARI warning Thu Jan 6 01:53:36 UTC 2011 GDB Administrator
2011-01-06  9:32 ` Joel Brobecker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox