From 8f7e195f62ca83d6d8e93d75025ff8c06cae6f82 Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Thu, 6 Jan 2011 09:30:35 +0000 Subject: [PATCH] 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. --- gdb/ChangeLog | 7 +++++++ gdb/linespec.c | 4 ++-- gdb/solib-irix.c | 4 ++-- gdb/varobj.c | 4 ++-- 4 files changed, 13 insertions(+), 6 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 60676a35b67..42e77dc525d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2011-01-06 Joel Brobecker + + * 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 * copyright.py: New script. diff --git a/gdb/linespec.c b/gdb/linespec.c index dffbb36ee21..ae48de785d4 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 f233d4a3a95..bd577a0a492 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 8cfcccff1d8..1792c2eaf4a 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; } -- 2.30.2