This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: segfault: what should happen when I remove an inferior that is running?


> Just a small nit that the ARI script discovered, we forgot the i18n
> marker:
> 
>         error (_("cannot remore an active inferior"));
> 
> (I also think that the proper spelling is `cannot' rather than
> 'can not' - confirmed by wikipedia, even though they say that it is
> occasionally spelled as two words)
> 
> Would you mind making the obvious fix?

Looks like Mark is away from the office, so I checked in the attached
fix (HEAD & 7.2 branch)

-- 
Joel
commit f114e5b6d29ff343021bb67765d209fa98d675fb
Author: Joel Brobecker <brobecker@adacore.com>
Date:   Thu Dec 23 08:27:37 2010 +0400

    Add missing _() marker in error message.
    
    gdb/ChangeLog:
    
    	* mi/mi-main.c (mi_cmd_remove_inferior): Use _() marker for error
    	message.  Change spelling of "can not" into "cannot".

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 24db449..4504f11 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2010-12-23  Joel Brobecker  <brobecker@adacore.com>
+
+	* mi/mi-main.c (mi_cmd_remove_inferior): Use _() marker for error
+	message.  Change spelling of "can not" into "cannot".
+
 2010-12-23  Yao Qi  <yao@codesourcery.com>
 
 	* arm-tdep.c (arm_gdbarch_init): Remove invoke to
diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c
index 6f66e89..f713412 100644
--- a/gdb/mi/mi-main.c
+++ b/gdb/mi/mi-main.c
@@ -1773,7 +1773,7 @@ mi_cmd_remove_inferior (char *command, char **argv, int argc)
     error ("the specified thread group does not exist");
 
   if (inf->pid != 0)
-    error ("can not remove an active inferior");
+    error (_("cannot remove an active inferior"));
 
   if (inf == current_inferior ())
     {

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]