2009-02-25 Hui Zhu <teawater@gmail.com>
authorHui Zhu <teawater@gmail.com>
Wed, 25 Feb 2009 02:14:23 +0000 (02:14 +0000)
committerHui Zhu <teawater@gmail.com>
Wed, 25 Feb 2009 02:14:23 +0000 (02:14 +0000)
* cli/cli-script.c (define_command): Add _() to query.
* gnu-nat.c (inf_validate_task_sc): Ditto.
* infcmd.c (kill_if_already_running): Ditto.
(jump_command): Ditto.
(attach_command): Ditto.
* inflow.c (kill_command): Ditto.
* infrun.c (handle_command): Ditto.
* maint.c (maintenance_dump_me): Ditto.
* memattr.c (mem_delete_command): Ditto.
* monitor.c (monitor_interrupt_query): Ditto.
* nto-procfs.c (interrupt_query): Ditto.
* printcmd.c (undisplay_command): Ditto.
* remote-mips.c (mips_kill): Ditto.
* remote.c (interrupt_query): Ditto.
* solib-irix.c (irix_open_symbol_file_object): Ditto.
* solib-osf.c (osf_open_symbol_file_object): Ditto.
* solib-pa64.c (pa64_open_symbol_file_object): Ditto.
* solib-som.c (som_open_symbol_file_object): Ditto.
* solib-svr4.c (open_symbol_file_object): Ditto.
* symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
* target.c (kill_or_be_killed): Ditto.
* tracepoint.c (delete_trace_command): Ditto.
* top.c (quit_confirm): Add _() to s that will be used
in query.

22 files changed:
gdb/ChangeLog
gdb/cli/cli-script.c
gdb/gnu-nat.c
gdb/infcmd.c
gdb/inflow.c
gdb/infrun.c
gdb/maint.c
gdb/memattr.c
gdb/monitor.c
gdb/nto-procfs.c
gdb/printcmd.c
gdb/remote-mips.c
gdb/remote.c
gdb/solib-irix.c
gdb/solib-osf.c
gdb/solib-pa64.c
gdb/solib-som.c
gdb/solib-svr4.c
gdb/symfile.c
gdb/target.c
gdb/top.c
gdb/tracepoint.c

index dc355a0a3d6f01776356cea12c805f288cd03f2f..a021e3df0a34e218d999c3fd4d21dee9b33a4e08 100644 (file)
@@ -1,3 +1,30 @@
+2009-02-25  Hui Zhu  <teawater@gmail.com>
+
+       * cli/cli-script.c (define_command): Add _() to query.
+       * gnu-nat.c (inf_validate_task_sc): Ditto.
+       * infcmd.c (kill_if_already_running): Ditto.
+       (jump_command): Ditto.
+       (attach_command): Ditto.
+       * inflow.c (kill_command): Ditto.
+       * infrun.c (handle_command): Ditto.
+       * maint.c (maintenance_dump_me): Ditto.
+       * memattr.c (mem_delete_command): Ditto.
+       * monitor.c (monitor_interrupt_query): Ditto.
+       * nto-procfs.c (interrupt_query): Ditto.
+       * printcmd.c (undisplay_command): Ditto.
+       * remote-mips.c (mips_kill): Ditto.
+       * remote.c (interrupt_query): Ditto.
+       * solib-irix.c (irix_open_symbol_file_object): Ditto.
+       * solib-osf.c (osf_open_symbol_file_object): Ditto.
+       * solib-pa64.c (pa64_open_symbol_file_object): Ditto.
+       * solib-som.c (som_open_symbol_file_object): Ditto.
+       * solib-svr4.c (open_symbol_file_object): Ditto.
+       * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
+       * target.c (kill_or_be_killed): Ditto.
+       * tracepoint.c (delete_trace_command): Ditto.
+       * top.c (quit_confirm): Add _() to s that will be used
+       in query.
+
 2009-02-24  Pierre Muller  <muller@ics.u-strasbg.fr>
 
        Fix windows-nat.c compilation failure.
index a7f56d053b1a927700073eea12bba48b18cbc795..d17e67a1af77073a1981edeb837a1f4ba9225ebe 100644 (file)
@@ -1379,7 +1379,7 @@ define_command (char *comname, int from_tty)
        {
          warning (_("Your new `%s' command does not hook any existing command."),
                   comfull);
-         if (!query ("Proceed? "))
+         if (!query (_("Proceed? ")))
            error (_("Not confirmed."));
        }
     }
index ddeaf7012670fb111840527aaf1fbf68467eaacd..a43a47df53f4e0e0cc472f68b0b645c73ff47d61 100644 (file)
@@ -854,8 +854,8 @@ inf_validate_task_sc (struct inf *inf)
       int abort;
 
       target_terminal_ours (); /* Allow I/O.  */
-      abort = !query ("Pid %d has an additional task suspend count of %d;"
-                     " clear it? ", inf->pid,
+      abort = !query (_("Pid %d has an additional task suspend count of %d;"
+                     " clear it? "), inf->pid,
                      suspend_count - inf->task->cur_sc);
       target_terminal_inferior ();     /* Give it back to the child.  */
 
index ba17109f56e342a8779c47d79a5dc450f88cb187..0a17dab06a3bdefa7e0d1ba4935ad2694d171744 100644 (file)
@@ -441,8 +441,8 @@ kill_if_already_running (int from_tty)
       target_require_runnable ();
 
       if (from_tty
-         && !query ("The program being debugged has been started already.\n\
-Start it from the beginning? "))
+         && !query (_("The program being debugged has been started already.\n\
+Start it from the beginning? ")))
        error (_("Program not restarted."));
       target_kill ();
     }
@@ -1029,7 +1029,7 @@ jump_command (char *arg, int from_tty)
   sfn = find_pc_function (sal.pc);
   if (fn != NULL && sfn != fn)
     {
-      if (!query ("Line %d is not in `%s'.  Jump anyway? ", sal.line,
+      if (!query (_("Line %d is not in `%s'.  Jump anyway? "), sal.line,
                  SYMBOL_PRINT_NAME (fn)))
        {
          error (_("Not confirmed."));
@@ -1043,7 +1043,7 @@ jump_command (char *arg, int from_tty)
       if (section_is_overlay (SYMBOL_OBJ_SECTION (sfn)) &&
          !section_is_mapped (SYMBOL_OBJ_SECTION (sfn)))
        {
-         if (!query ("WARNING!!!  Destination is in unmapped overlay!  Jump anyway? "))
+         if (!query (_("WARNING!!!  Destination is in unmapped overlay!  Jump anyway? ")))
            {
              error (_("Not confirmed."));
              /* NOTREACHED */
@@ -2235,7 +2235,7 @@ attach_command (char *args, int from_tty)
     ;
   else if (target_has_execution)
     {
-      if (query ("A program is being debugged already.  Kill it? "))
+      if (query (_("A program is being debugged already.  Kill it? ")))
        target_kill ();
       else
        error (_("Not killed."));
index 972b52ef733d539a204d05de1c287cd13ccef72b..d7401ca6e2c9dee8ce44f1092c5569c171234890 100644 (file)
@@ -607,7 +607,7 @@ kill_command (char *arg, int from_tty)
 
   if (ptid_equal (inferior_ptid, null_ptid))
     error (_("The program is not being run."));
-  if (!query ("Kill the program being debugged? "))
+  if (!query (_("Kill the program being debugged? ")))
     error (_("Not confirmed."));
   target_kill ();
 
index 59fee8b9b3fa5eab5cc01eee6adb5b9be5676c88..e5c2971a5f5c39cda0fc3978a8e30581e34d3868 100644 (file)
@@ -4637,8 +4637,8 @@ handle_command (char *args, int from_tty)
            case TARGET_SIGNAL_INT:
              if (!allsigs && !sigs[signum])
                {
-                 if (query ("%s is used by the debugger.\n\
-Are you sure you want to change it? ", target_signal_to_name ((enum target_signal) signum)))
+                 if (query (_("%s is used by the debugger.\n\
+Are you sure you want to change it? "), target_signal_to_name ((enum target_signal) signum)))
                    {
                      sigs[signum] = 1;
                    }
index 489234cbe0c9c91aa522938ac011398551ca4e76..56cafe9ae3ee08d8cc275e231ed60ce1961b0d59 100644 (file)
@@ -98,7 +98,7 @@ maintenance_command (char *args, int from_tty)
 static void
 maintenance_dump_me (char *args, int from_tty)
 {
-  if (query ("Should GDB dump core? "))
+  if (query (_("Should GDB dump core? ")))
     {
 #ifdef __DJGPP__
       /* SIGQUIT by default is ignored, so use SIGABRT instead.  */
index b5eea4d134927f42bf67497a3850cd361270068a..5b52f8505721922ab935ea934912e22858d87de0 100644 (file)
@@ -690,7 +690,7 @@ mem_delete_command (char *args, int from_tty)
 
   if (p == 0)
     {
-      if (query ("Delete all memory regions? "))
+      if (query (_("Delete all memory regions? ")))
        mem_clear ();
       dont_repeat ();
       return;
index 773a704d8d554c271b8da9675e0a9f6865122da9..5557998c8076b5bad662dace95d80f4a0aa30482 100644 (file)
@@ -1008,8 +1008,8 @@ monitor_interrupt_query (void)
 {
   target_terminal_ours ();
 
-  if (query ("Interrupted while waiting for the program.\n\
-Give up (and stop debugging it)? "))
+  if (query (_("Interrupted while waiting for the program.\n\
+Give up (and stop debugging it)? ")))
     {
       target_mourn_inferior ();
       deprecated_throw_reason (RETURN_QUIT);
index a8eab7a45edf4233d54d8b5c7609141161b2fa3a..75102f122f7740d2e9d98886484effe3f1f489d7 100644 (file)
@@ -593,8 +593,8 @@ interrupt_query (void)
 {
   target_terminal_ours ();
 
-  if (query ("Interrupted while waiting for the program.\n\
-Give up (and stop debugging it)? "))
+  if (query (_("Interrupted while waiting for the program.\n\
+Give up (and stop debugging it)? ")))
     {
       target_mourn_inferior ();
       deprecated_throw_reason (RETURN_QUIT);
index a51ba686d202ef500037b189550e812b113cbceb..04d7fe547a3c1a179b6eeeef3f5d0265ce926d6e 100644 (file)
@@ -1482,7 +1482,7 @@ undisplay_command (char *args, int from_tty)
 
   if (args == 0)
     {
-      if (query ("Delete all auto-display expressions? "))
+      if (query (_("Delete all auto-display expressions? ")))
        clear_displays ();
       dont_repeat ();
       return;
index b73e6fad094c6037f6a865eb9a6ba33494992859..66e8328a284baa1a2e6a1eea7edb4f861edafebe 100644 (file)
@@ -2142,8 +2142,8 @@ mips_kill (void)
 
       target_terminal_ours ();
 
-      if (query ("Interrupted while waiting for the program.\n\
-Give up (and stop debugging it)? "))
+      if (query (_("Interrupted while waiting for the program.\n\
+Give up (and stop debugging it)? ")))
        {
          /* Clean up in such a way that mips_close won't try to talk to the
             board (it almost surely won't work since we weren't able to talk to
index dd188e5f364e105b527f77a1672df73d1faa31e7..6efad54bceef6063f1845585b39e0d95acce2f94 100644 (file)
@@ -3944,8 +3944,8 @@ interrupt_query (void)
     }
   else
     {
-      if (query ("Interrupted while waiting for the program.\n\
-Give up (and stop debugging it)? "))
+      if (query (_("Interrupted while waiting for the program.\n\
+Give up (and stop debugging it)? ")))
        {
          pop_target ();
          deprecated_throw_reason (RETURN_QUIT);
index 003f5221565275b3e24f175c5399847e6c0800fa..8409e6fa045d358310cce6540b6458eb25a31a65 100644 (file)
@@ -611,7 +611,7 @@ irix_open_symbol_file_object (void *from_ttyp)
   char *filename;
 
   if (symfile_objfile)
-    if (!query ("Attempt to reload symbols from process? "))
+    if (!query (_("Attempt to reload symbols from process? ")))
       return 0;
 
   if ((debug_base = locate_base ()) == 0)
index 151589f8296819ba2522ea873d144bc7505857ea..9fd52f8393c8c0a282c66656b60d053e8c732d84 100644 (file)
@@ -584,7 +584,7 @@ osf_open_symbol_file_object (void *from_ttyp)
   int found;
 
   if (symfile_objfile)
-    if (!query ("Attempt to reload symbols from process? "))
+    if (!query (_("Attempt to reload symbols from process? ")))
       return 0;
 
   /* The first module after /sbin/loader is the main program.  */
index 98ee07038a1574684938b48bb11f9ac17486155b..9cbf5a63539d06f8dd577e6c923665244cde8097 100644 (file)
@@ -529,7 +529,7 @@ pa64_open_symbol_file_object (void *from_ttyp)
   char *dll_path;
 
   if (symfile_objfile)
-    if (!query ("Attempt to reload symbols from process? "))
+    if (!query (_("Attempt to reload symbols from process? ")))
       return 0;
 
   /* Read in the load map pointer if we have not done so already.  */
index 8e43c8502e6bf0caaff8d9bab1b8a85267d6faa5..72989858f3963fb9829ee293f01ada2d1673234d 100644 (file)
@@ -696,7 +696,7 @@ som_open_symbol_file_object (void *from_ttyp)
   char buf[4];
 
   if (symfile_objfile)
-    if (!query ("Attempt to reload symbols from process? "))
+    if (!query (_("Attempt to reload symbols from process? ")))
       return 0;
 
   /* First link map member should be the executable.  */
index 5970a7e4a7e036ba6a6855c3297d81a028944ad3..781cef5380b31c839f25e749dc89856ba6542047 100644 (file)
@@ -845,7 +845,7 @@ open_symbol_file_object (void *from_ttyp)
   struct cleanup *cleanups = make_cleanup (xfree, l_name_buf);
 
   if (symfile_objfile)
-    if (!query ("Attempt to reload symbols from process? "))
+    if (!query (_("Attempt to reload symbols from process? ")))
       return 0;
 
   /* Always locate the debug struct, in case it has moved.  */
index 6a0a8e510435d78714dbfe2566fe53161cc629ac..63b5c1d8444e19a122cc71bfc836a25bd6d290b6 100644 (file)
@@ -968,7 +968,7 @@ symbol_file_add_with_addrs_or_offsets (bfd *abfd, int from_tty,
   if ((have_full_symbols () || have_partial_symbols ())
       && mainline
       && from_tty
-      && !query ("Load new symbol table from \"%s\"? ", name))
+      && !query (_("Load new symbol table from \"%s\"? "), name))
     error (_("Not confirmed."));
 
   objfile = allocate_objfile (abfd, flags);
index 0848fb7dc4f74c9ee9f20f650e4b7937f6a0c49c..b89d5511c4a31c2b3932f95eb5ab52ac7fae1786 100644 (file)
@@ -341,7 +341,7 @@ kill_or_be_killed (int from_tty)
     {
       printf_unfiltered (_("You are already running a program:\n"));
       target_files_info ();
-      if (query ("Kill it? "))
+      if (query (_("Kill it? ")))
        {
          target_kill ();
          if (target_has_execution)
index d5ef7067ab89ff77d390af959ee41a2e35211f04..d676f0237a59ac68b5a7767285c4d57147c9e947 100644 (file)
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -1183,11 +1183,11 @@ quit_confirm (void)
          see if a GUI is running.  The `use_windows' variable doesn't
          cut it.  */
       if (deprecated_init_ui_hook)
-       s = "A debugging session is active.\nDo you still want to close the debugger?";
+       s = _("A debugging session is active.\nDo you still want to close the debugger?");
       else if (inf->attach_flag)
-       s = "The program is running.  Quit anyway (and detach it)? ";
+       s = _("The program is running.  Quit anyway (and detach it)? ");
       else
-       s = "The program is running.  Quit anyway (and kill it)? ";
+       s = _("The program is running.  Quit anyway (and kill it)? ");
 
       if (!query ("%s", s))
        return 0;
index bb3e3e80033d8840e34d6ca0f05c9d2069637c31..83df64e22ae56edd1b5a32b4240dcacedfc00af3 100644 (file)
@@ -692,7 +692,7 @@ delete_trace_command (char *args, int from_tty)
     if (from_tty)              /* confirm only if from_tty...  */
       if (tracepoint_chain)    /* and if there are tracepoints to
                                   delete!  */
-       if (!query ("Delete all tracepoints? "))
+       if (!query (_("Delete all tracepoints? ")))
          return;
 
   map_args_over_tracepoints (args, from_tty, delete_op);
This page took 0.048862 seconds and 4 git commands to generate.