Remove trailing new-line at end of error string
authorJoel Brobecker <brobecker@gnat.com>
Thu, 6 Jan 2011 09:30:35 +0000 (09:30 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Thu, 6 Jan 2011 09:30:35 +0000 (09:30 +0000)
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.

gdb/ChangeLog
gdb/linespec.c
gdb/solib-irix.c
gdb/varobj.c

index 60676a35b671c7217a84853a83540aa02d4109b3..42e77dc525d99f14ded386ebf8d85590a8525ee2 100644 (file)
@@ -1,3 +1,10 @@
+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.
index dffbb36ee21a9ecbbc168b64f1f0295f8f89ca63..ae48de785d4508dd0e563daf31ceccd86a9e941a 100644 (file)
@@ -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);
        }
 
index f233d4a3a95376d1db4e6f54372fb5dc979aa8fe..bd577a0a492632db9a99c70b7aea50cac188e741 100644 (file)
@@ -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);
            }
 
index 8cfcccff1d851f383b10a3f801dc964e9cbadcfd..1792c2eaf4a5d1b6b990ce166cff97bb05e9d4c8 100644 (file)
@@ -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;
            }