]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2005-02-10 Andrew Cagney <cagney@gnu.org>
authorAndrew Cagney <cagney@redhat.com>
Thu, 10 Feb 2005 17:32:53 +0000 (17:32 +0000)
committerAndrew Cagney <cagney@redhat.com>
Thu, 10 Feb 2005 17:32:53 +0000 (17:32 +0000)
* cli/cli-decode.c (add_setshow_enum_cmd, add_setshow_cmd_full)
(add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
(add_setshow_filename_cmd, add_setshow_string_cmd)
(add_setshow_uinteger_cmd, add_setshow_zinteger_cmd): Replace
print string parameter with fprint_setshow function.
* command.h (fprint_setshow_ftype): Define.  Update declarations.
* cli/cli-setshow.c (do_setshow_command): When fprint_setshow is
available, use that.
* cli/cli-decode.h (struct cmd_list_element): Add field
fprint_setshow.
* complaints.c (fprint_setshow_complaints): New function.
(_initialize_complaints): Pass to add_setshow_zinteger_cmd.
* hppa-tdep.c (_initialize_hppa_tdep): Replace "print" parameter
with NULL.
* mips-tdep.c (_initialize_mips_tdep): Ditto.
* m32r-rom.c (_initialize_m32r_rom): Ditto.
* cris-tdep.c (_initialize_cris_tdep): Ditto.
* arm-tdep.c (_initialize_arm_tdep): Ditto.
* remote-rdi.c (_initialize_remote_rdi): Ditto.
* alpha-tdep.c (_initialize_alpha_tdep): Ditto.
* dwarf2read.c (_initialize_dwarf2_read): Ditto.
* frame.c (_initialize_frame): Ditto.
* target.c (initialize_targets): Ditto.
* maint.c (_initialize_maint_cmds): Ditto.
* observer.c (_initialize_observer): Ditto.
* infcall.c (_initialize_infcall): Ditto.
* breakpoint.c (_initialize_breakpoint): Ditto.
* cli/cli-logging.c (_initialize_cli_logging): Ditto.
* remote.c (add_packet_config_cmd, _initialize_remote): Ditto.

22 files changed:
gdb/ChangeLog
gdb/alpha-tdep.c
gdb/arm-tdep.c
gdb/breakpoint.c
gdb/cli/cli-decode.c
gdb/cli/cli-decode.h
gdb/cli/cli-logging.c
gdb/cli/cli-setshow.c
gdb/command.h
gdb/complaints.c
gdb/cris-tdep.c
gdb/dwarf2read.c
gdb/frame.c
gdb/hppa-tdep.c
gdb/infcall.c
gdb/m32r-rom.c
gdb/maint.c
gdb/mips-tdep.c
gdb/observer.c
gdb/remote-rdi.c
gdb/remote.c
gdb/target.c

index cb777075a8e37bf82f163c234e7202d4de432294..0b06bd080988494ca39c62a74d933464891ee48b 100644 (file)
@@ -1,5 +1,35 @@
 2005-02-10  Andrew Cagney  <cagney@gnu.org>
 
+       * cli/cli-decode.c (add_setshow_enum_cmd, add_setshow_cmd_full)
+       (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
+       (add_setshow_filename_cmd, add_setshow_string_cmd)
+       (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd): Replace
+       print string parameter with fprint_setshow function.
+       * command.h (fprint_setshow_ftype): Define.  Update declarations.
+       * cli/cli-setshow.c (do_setshow_command): When fprint_setshow is
+       available, use that.
+       * cli/cli-decode.h (struct cmd_list_element): Add field
+       fprint_setshow.
+       * complaints.c (fprint_setshow_complaints): New function.
+       (_initialize_complaints): Pass to add_setshow_zinteger_cmd.
+       * hppa-tdep.c (_initialize_hppa_tdep): Replace "print" parameter
+       with NULL.
+       * mips-tdep.c (_initialize_mips_tdep): Ditto.
+       * m32r-rom.c (_initialize_m32r_rom): Ditto.
+       * cris-tdep.c (_initialize_cris_tdep): Ditto.
+       * arm-tdep.c (_initialize_arm_tdep): Ditto.
+       * remote-rdi.c (_initialize_remote_rdi): Ditto.
+       * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
+       * dwarf2read.c (_initialize_dwarf2_read): Ditto.
+       * frame.c (_initialize_frame): Ditto.
+       * target.c (initialize_targets): Ditto.
+       * maint.c (_initialize_maint_cmds): Ditto.
+       * observer.c (_initialize_observer): Ditto.
+       * infcall.c (_initialize_infcall): Ditto.
+       * breakpoint.c (_initialize_breakpoint): Ditto.
+       * cli/cli-logging.c (_initialize_cli_logging): Ditto.
+       * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
+
        * cli/cli-setshow.c (do_setshow_command): Move code printing the
        value to the end of the function.  Handle MI and non-MI output
        differently.
index 5b01051aee49d8f4c3a29f0196b073806eff8780..142bc32da85cd1afb752cc16065da7903a4d2133 100644 (file)
@@ -1595,8 +1595,7 @@ Show the distance searched for the start of a function."),
 If you are debugging a stripped executable, GDB needs to search through the\n\
 program for the start of a function.  This command sets the distance of the\n\
 search.  The only need to set it is when debugging a stripped executable."),
-                           _("\
-The distance searched for the start of a function is \"%d\"."),
+                           NULL, /* PRINT: The distance searched for the start of a function is \"%d\".  */
                            reinit_frame_cache_sfunc, NULL,
                            &setlist, &showlist);
 }
index 0d12630947f785d098026cd27cdc6cead42d6e79..8352bf330bf06e40d5ae97fa33f2592943c8328e 100644 (file)
@@ -2884,7 +2884,7 @@ _initialize_arm_tdep (void)
                       _("Set the disassembly style."),
                       _("Show the disassembly style."),
                       helptext,
-                      _("The disassembly style is \"%s\"."),
+                      NULL, /* PRINT: The disassembly style is \"%s\".  */
                       set_disassembly_style_sfunc, NULL,
                       &setarmcmdlist, &showarmcmdlist);
 
@@ -2892,7 +2892,7 @@ _initialize_arm_tdep (void)
                           _("Set usage of ARM 32-bit mode."),
                           _("Show usage of ARM 32-bit mode."),
                           _("When off, a 26-bit PC will be used."),
-                          _("Usage of ARM 32-bit mode is %s."),
+                          NULL, /* PRINT: "Usage of ARM 32-bit mode is %s.  */
                           NULL, NULL,
                           &setarmcmdlist, &showarmcmdlist);
 
@@ -2905,7 +2905,7 @@ softfpa - Software FP, mixed-endian doubles on little-endian ARMs.\n\
 fpa - FPA co-processor (GCC compiled).\n\
 softvfp - Software FP with pure-endian doubles.\n\
 vfp - VFP co-processor."),
-                       _("The floating point type is \"%s\"."),
+                       NULL, /* PRINT: "The floating point type is \"%s\".  */
                        set_fp_model_sfunc, show_fp_model,
                        &setarmcmdlist, &showarmcmdlist);
 
@@ -2914,7 +2914,7 @@ vfp - VFP co-processor."),
                           _("Set ARM debugging."),
                           _("Show ARM debugging."),
                           _("When on, arm-specific debugging is enabled."),
-                          _("ARM debugging is %s."),
+                          NULL, /* PRINT: "ARM debugging is %s.  */
                           NULL, NULL,
                           &setdebuglist, &showdebuglist);
 }
index da37ea85738f77ee37dfd8fa1f29f959d001daa2..1fdc212bbd84d742333c92b30aa6d289bb6a9dca 100644 (file)
@@ -7955,8 +7955,8 @@ Show debugger's behavior regarding pending breakpoints.", "\
 If on, an unrecognized breakpoint location will cause gdb to create a\n\
 pending breakpoint.  If off, an unrecognized breakpoint location results in\n\
 an error.  If auto, an unrecognized breakpoint location results in a\n\
-user-query to see if a pending breakpoint should be created.", "\
-Debugger's behavior regarding pending breakpoints is %s.",
+user-query to see if a pending breakpoint should be created.",
+                               NULL, /*  PRINT: Debugger's behavior regarding pending breakpoints is %s.  */
                                NULL, NULL,
                                &breakpoint_set_cmdlist,
                                &breakpoint_show_cmdlist);
index 1e915729eb24929b84a0345278a1fba19bfe708e..40d5cd6d0089d7d654d53d6ea4393b8fb8110a27 100644 (file)
@@ -330,7 +330,8 @@ add_setshow_cmd_full (char *name,
                      enum command_class class,
                      var_types var_type, void *var,
                      const char *set_doc, const char *show_doc,
-                     const char *help_doc, const char *print,
+                     const char *help_doc,
+                     fprint_setshow_ftype *fprint_setshow,
                      cmd_sfunc_ftype *set_func,
                      cmd_sfunc_ftype *show_func,
                      struct cmd_list_element **set_list,
@@ -359,6 +360,8 @@ add_setshow_cmd_full (char *name,
     set_cmd_sfunc (set, set_func);
   show = add_set_or_show_cmd (name, show_cmd, class, var_type, var,
                              full_show_doc, show_list);
+  show->fprint_setshow = fprint_setshow;
+
   if (show_func != NULL)
     set_cmd_sfunc (show, show_func);
 
@@ -415,7 +418,7 @@ add_setshow_enum_cmd (char *name,
                      const char *set_doc,
                      const char *show_doc,
                      const char *help_doc,
-                     const char *print,
+                     fprint_setshow_ftype *fprint_setshow,
                      cmd_sfunc_ftype *set_func,
                      cmd_sfunc_ftype *show_func,
                      struct cmd_list_element **set_list,
@@ -423,7 +426,8 @@ add_setshow_enum_cmd (char *name,
 {
   struct cmd_list_element *c;
   add_setshow_cmd_full (name, class, var_enum, var,
-                       set_doc, show_doc, help_doc, print,
+                       set_doc, show_doc, help_doc,
+                       fprint_setshow,
                        set_func, show_func,
                        set_list, show_list,
                        &c, NULL);
@@ -439,7 +443,8 @@ add_setshow_auto_boolean_cmd (char *name,
                              enum command_class class,
                              enum auto_boolean *var,
                              const char *set_doc, const char *show_doc,
-                             const char *help_doc, const char *print,
+                             const char *help_doc,
+                             fprint_setshow_ftype *fprint_setshow,
                              cmd_sfunc_ftype *set_func,
                              cmd_sfunc_ftype *show_func,
                              struct cmd_list_element **set_list,
@@ -448,7 +453,7 @@ add_setshow_auto_boolean_cmd (char *name,
   static const char *auto_boolean_enums[] = { "on", "off", "auto", NULL };
   struct cmd_list_element *c;
   add_setshow_cmd_full (name, class, var_auto_boolean, var,
-                       set_doc, show_doc, help_doc, print,
+                       set_doc, show_doc, help_doc, fprint_setshow,
                        set_func, show_func,
                        set_list, show_list,
                        &c, NULL);
@@ -462,7 +467,8 @@ add_setshow_auto_boolean_cmd (char *name,
 void
 add_setshow_boolean_cmd (char *name, enum command_class class, int *var,
                         const char *set_doc, const char *show_doc,
-                        const char *help_doc, const char *print,
+                        const char *help_doc,
+                        fprint_setshow_ftype *fprint_setshow,
                         cmd_sfunc_ftype *set_func,
                         cmd_sfunc_ftype *show_func,
                         struct cmd_list_element **set_list,
@@ -471,7 +477,7 @@ add_setshow_boolean_cmd (char *name, enum command_class class, int *var,
   static const char *boolean_enums[] = { "on", "off", NULL };
   struct cmd_list_element *c;
   add_setshow_cmd_full (name, class, var_boolean, var,
-                       set_doc, show_doc, help_doc, print,
+                       set_doc, show_doc, help_doc, fprint_setshow,
                        set_func, show_func,
                        set_list, show_list,
                        &c, NULL);
@@ -484,14 +490,15 @@ void
 add_setshow_filename_cmd (char *name, enum command_class class,
                          char **var,
                          const char *set_doc, const char *show_doc,
-                         const char *help_doc, const char *print,
+                         const char *help_doc,
+                         fprint_setshow_ftype *fprint_setshow,
                          cmd_sfunc_ftype *set_func,
                          cmd_sfunc_ftype *show_func,
                          struct cmd_list_element **set_list,
                          struct cmd_list_element **show_list)
 {
   add_setshow_cmd_full (name, class, var_filename, var,
-                       set_doc, show_doc, help_doc, print,
+                       set_doc, show_doc, help_doc, fprint_setshow,
                        set_func, show_func,
                        set_list, show_list,
                        NULL, NULL);
@@ -503,14 +510,15 @@ void
 add_setshow_string_cmd (char *name, enum command_class class,
                          char **var,
                          const char *set_doc, const char *show_doc,
-                         const char *help_doc, const char *print,
+                         const char *help_doc,
+                       fprint_setshow_ftype *fprint_setshow,
                          cmd_sfunc_ftype *set_func,
                          cmd_sfunc_ftype *show_func,
                          struct cmd_list_element **set_list,
                          struct cmd_list_element **show_list)
 {
   add_setshow_cmd_full (name, class, var_string, var,
-                       set_doc, show_doc, help_doc, print,
+                       set_doc, show_doc, help_doc, fprint_setshow,
                        set_func, show_func,
                        set_list, show_list,
                        NULL, NULL);
@@ -524,14 +532,15 @@ void
 add_setshow_uinteger_cmd (char *name, enum command_class class,
                          unsigned int *var,
                          const char *set_doc, const char *show_doc,
-                         const char *help_doc, const char *print,
+                         const char *help_doc,
+                         fprint_setshow_ftype *fprint_setshow,
                          cmd_sfunc_ftype *set_func,
                          cmd_sfunc_ftype *show_func,
                          struct cmd_list_element **set_list,
                          struct cmd_list_element **show_list)
 {
   add_setshow_cmd_full (name, class, var_uinteger, var,
-                       set_doc, show_doc, help_doc, print,
+                       set_doc, show_doc, help_doc, fprint_setshow,
                        set_func, show_func,
                        set_list, show_list,
                        NULL, NULL);
@@ -545,14 +554,15 @@ void
 add_setshow_zinteger_cmd (char *name, enum command_class class,
                          int *var,
                          const char *set_doc, const char *show_doc,
-                         const char *help_doc, const char *print,
+                         const char *help_doc,
+                         fprint_setshow_ftype *fprint_setshow,
                          cmd_sfunc_ftype *set_func,
                          cmd_sfunc_ftype *show_func,
                          struct cmd_list_element **set_list,
                          struct cmd_list_element **show_list)
 {
   add_setshow_cmd_full (name, class, var_zinteger, var,
-                       set_doc, show_doc, help_doc, print,
+                       set_doc, show_doc, help_doc, fprint_setshow,
                        set_func, show_func,
                        set_list, show_list,
                        NULL, NULL);
index 15732af9ef8284f1859f0f3b6a19c7cebf17fc1d..d00ff0955a8efc3accaacc609d3da16598462eda 100644 (file)
@@ -88,6 +88,10 @@ struct cmd_list_element
        Entire string should also end with a period, not a newline.  */
     char *doc;
 
+    /* For set/show commands.  A method for printing the output to the
+       specified stream.  */
+    fprint_setshow_ftype *fprint_setshow;
+
     /* flags : a bitfield 
        
        bit 0: (LSB) CMD_DEPRECATED, when 1 indicated that this command
index 6b32b330ba6eb5aff34e55b82699e59d33c1f0fb..773a420399cb050d72c85c02d2c68085812a6405 100644 (file)
@@ -177,21 +177,21 @@ _initialize_cli_logging (void)
   add_setshow_boolean_cmd ("overwrite", class_support, &logging_overwrite, "\
 Set whether logging overwrites or appends to the log file.", "\
 Show whether logging overwrites or appends to the log file.", "\
-If set, logging overrides the log file.", "\
-Whether logging overwrites or appends to the log file is %s.",
+If set, logging overrides the log file.",
+                          NULL, /* PRINT: Whether logging overwrites or appends to the log file is %s.  */
                           NULL, NULL, &set_logging_cmdlist, &show_logging_cmdlist);
   add_setshow_boolean_cmd ("redirect", class_support, &logging_redirect, "\
 Set the logging output mode.", "\
 Show the logging output mode.", "\
 If redirect is off, output will go to both the screen and the log file.\n\
-If redirect is on, output will go only to the log file.", "\
-The logging output mode is %s.",
+If redirect is on, output will go only to the log file.",
+                          NULL, /* PRINT: The logging output mode is %s.  */
                           NULL, NULL, &set_logging_cmdlist, &show_logging_cmdlist);
   add_setshow_filename_cmd ("file", class_support, &logging_filename, "\
 Set the current logfile.", "\
 Show the current logfile.", "\
-The logfile is used when directing GDB's output.", "\
-The current logfile is %s.",
+The logfile is used when directing GDB's output.",
+                           NULL, /* PRINT: The current logfile is %s.  */
                            NULL, NULL,
                            &set_logging_cmdlist, &show_logging_cmdlist);
   add_cmd ("on", class_support, set_logging_on,
index 73e47a4348ff873797615a1a32e20c2e10bb6c18..8f84345a0b078867323b6810987627d1ab148b67 100644 (file)
@@ -337,6 +337,14 @@ do_setshow_command (char *arg, int from_tty, struct cmd_list_element *c)
 
       if (ui_out_is_mi_like_p (uiout))
        ui_out_field_stream (uiout, "value", stb);
+      else if (c->fprint_setshow != NULL)
+       {
+         long length;
+         char *value = ui_file_xstrdup (stb->stream, &length);
+         make_cleanup (xfree, value);
+         c->fprint_setshow (c, gdb_stdout, value);
+         fprintf_filtered (gdb_stdout, "\n");
+       }
       else
        {
          /* Print doc minus "show" at start.  */
index 5b7a5424c2967379f13d9f66e390630ebe03fa70..355355eb9f997711d506405417e976d9ae03570d 100644 (file)
@@ -223,6 +223,13 @@ extern struct cmd_list_element *add_set_enum_cmd (char *name,
                                                  const char **var,
                                                  char *doc,
                                                  struct cmd_list_element **list);
+
+/* Print the set|show CMD's variable's VALUE on FILE.  Do not include
+   a trailing "\n".  */
+typedef void (fprint_setshow_ftype) (struct cmd_list_element *cmd,
+                                    struct ui_file *file,
+                                    const char *value);
+
 extern void add_setshow_enum_cmd (char *name,
                                  enum command_class class,
                                  const char *enumlist[],
@@ -230,7 +237,7 @@ extern void add_setshow_enum_cmd (char *name,
                                  const char *set_doc,
                                  const char *show_doc,
                                  const char *help_doc,
-                                 const char *print,
+                                 fprint_setshow_ftype *fprint_setshow,
                                  cmd_sfunc_ftype *set_func,
                                  cmd_sfunc_ftype *show_func,
                                  struct cmd_list_element **set_list,
@@ -242,7 +249,7 @@ extern void add_setshow_auto_boolean_cmd (char *name,
                                          const char *set_doc,
                                          const char *show_doc,
                                          const char *help_doc,
-                                         const char *print,
+                                         fprint_setshow_ftype *fprint_setshow,
                                          cmd_sfunc_ftype *set_func,
                                          cmd_sfunc_ftype *show_func,
                                          struct cmd_list_element **set_list,
@@ -252,7 +259,7 @@ extern void add_setshow_boolean_cmd (char *name,
                                     enum command_class class,
                                     int *var,
                                     const char *set_doc, const char *show_doc,
-                                    const char *help_doc, const char *print,
+                                    const char *help_doc, fprint_setshow_ftype *fprint_setshow,
                                     cmd_sfunc_ftype *set_func,
                                     cmd_sfunc_ftype *show_func,
                                     struct cmd_list_element **set_list,
@@ -264,7 +271,7 @@ extern void add_setshow_filename_cmd (char *name,
                                      const char *set_doc,
                                      const char *show_doc,
                                      const char *help_doc,
-                                     const char *print,
+                                     fprint_setshow_ftype *fprint_setshow,
                                      cmd_sfunc_ftype *set_func,
                                      cmd_sfunc_ftype *show_func,
                                      struct cmd_list_element **set_list,
@@ -276,7 +283,7 @@ extern void add_setshow_string_cmd (char *name,
                                    const char *set_doc,
                                    const char *show_doc,
                                    const char *help_doc,
-                                   const char *print,
+                                   fprint_setshow_ftype *fprint_setshow,
                                    cmd_sfunc_ftype *set_func,
                                    cmd_sfunc_ftype *show_func,
                                    struct cmd_list_element **set_list,
@@ -288,7 +295,7 @@ extern void add_setshow_uinteger_cmd (char *name,
                                      const char *set_doc,
                                      const char *show_doc,
                                      const char *help_doc,
-                                     const char *print,
+                                     fprint_setshow_ftype *fprint_setshow,
                                      cmd_sfunc_ftype *set_func,
                                      cmd_sfunc_ftype *show_func,
                                      struct cmd_list_element **set_list,
@@ -300,7 +307,7 @@ extern void add_setshow_zinteger_cmd (char *name,
                                      const char *set_doc,
                                      const char *show_doc,
                                      const char *help_doc,
-                                     const char *print,
+                                     fprint_setshow_ftype *fprint_setshow,
                                      cmd_sfunc_ftype *set_func,
                                      cmd_sfunc_ftype *show_func,
                                      struct cmd_list_element **set_list,
index 3f9be14bfa882ee4b91dce189fe6fb394be8a5e7..d060090927ecce8ed989b6f12fde7a91b47c6579 100644 (file)
@@ -309,13 +309,23 @@ clear_complaints (struct complaints **c, int less_verbose, int noisy)
     complaints->series = SHORT_FIRST_MESSAGE;
 }
 
+static void
+fprint_setshow_complaints (struct cmd_list_element *cmd,
+                          struct ui_file *file,
+                          const char *value)
+{
+  fprintf_filtered (file, _("Max number of complaints about incorrect"
+                           " symbols is %s."),
+                   value);
+}
+
 void
 _initialize_complaints (void)
 {
   add_setshow_zinteger_cmd ("complaints", class_support, &stop_whining, _("\
 Set max number of complaints about incorrect symbols."), _("\
-Show max number of complaints about incorrect symbols."), NULL, _("\
-Max number of complaints about incorrect symbols is %s."),
+Show max number of complaints about incorrect symbols."), NULL,
+                           fprint_setshow_complaints,
                            NULL, NULL,
                            &setlist, &showlist);
 
index 5a31b8ba2b8d042bf4a99b97eb8900b356138b45..15407cf50cedc8c2c75c805c65f74a59583e236c 100644 (file)
@@ -3919,7 +3919,7 @@ _initialize_cris_tdep (void)
                            "Set the current CRIS version.",
                            "Show the current CRIS version.",
                            "Set if autodetection fails.",
-                           "Current CRIS version is %s.",
+                           NULL, /* PRINT: Current CRIS version is %s.  */
                            set_cris_version, NULL,
                            &setlist, &showlist);
   
@@ -3928,7 +3928,7 @@ _initialize_cris_tdep (void)
                           "Set the usage of Dwarf-2 CFI for CRIS.",
                           "Show the usage of Dwarf-2 CFI for CRIS.",
                           "Set to \"off\" if using gcc-cris < R59.",
-                          "Usage of Dwarf-2 CFI for CRIS is %d.",
+                          NULL, /* PRINT: Usage of Dwarf-2 CFI for CRIS is %d.  */
                           set_cris_dwarf2_cfi, NULL,
                           &setlist, &showlist);
 
index 8fe38fe1b18cfa4ab8be73680afb963a39b3bc6e..cc346ff1557bd1fcaadeaee04768019f36e16713 100644 (file)
@@ -9652,8 +9652,7 @@ _initialize_dwarf2_read (void)
                            "in memory longer, and more total memory will "
                            "be used.  Zero disables\n"
                            "caching, which can slow down startup.",
-                           "The upper bound on the age of cached "
-                           "dwarf2 compilation units is %d.",
+                           NULL, /* PRINT: The upper bound on the age of cached dwarf2 compilation units is %d.  */
                            NULL, NULL, &set_dwarf2_cmdlist,
                            &show_dwarf2_cmdlist);
 }
index 054b062fdeb10ba4b2907ff9426f156a8c3c364b..bcc55162fc2490a117032920f2aabd98377038a5 100644 (file)
@@ -1555,8 +1555,8 @@ Set whether backtraces should continue past \"main\".", "\
 Show whether backtraces should continue past \"main\".", "\
 Normally the caller of \"main\" is not of interest, so GDB will terminate\n\
 the backtrace at \"main\".  Set this variable if you need to see the rest\n\
-of the stack trace.", "\
-Whether backtraces should continue past \"main\" is %s.",
+of the stack trace.",
+                          NULL, /* PRINT: Whether backtraces should continue past \"main\" is %s.  */
                           NULL, NULL, &set_backtrace_cmdlist,
                           &show_backtrace_cmdlist);
 
@@ -1566,8 +1566,8 @@ Set whether backtraces should continue past the entry point of a program.", "\
 Show whether backtraces should continue past the entry point of a program.", "\
 Normally there are no callers beyond the entry point of a program, so GDB\n\
 will terminate the backtrace there.  Set this variable if you need to see \n\
-the rest of the stack trace.", "\
-Whether backtraces should continue past the entry point is %s.",
+the rest of the stack trace.",
+                          NULL, /* PRINT: Whether backtraces should continue past the entry point is %s.  */
                           NULL, NULL, &set_backtrace_cmdlist,
                           &show_backtrace_cmdlist);
 
@@ -1576,8 +1576,8 @@ Whether backtraces should continue past the entry point is %s.",
 Set an upper bound on the number of backtrace levels.", "\
 Show the upper bound on the number of backtrace levels.", "\
 No more than the specified number of frames can be displayed or examined.\n\
-Zero is unlimited.", "\
-An upper bound on the number of backtrace levels is %s.",
+Zero is unlimited.",
+                           NULL, /* PRINT: An upper bound on the number of backtrace levels is %s.  */
                            NULL, NULL, &set_backtrace_cmdlist,
                            &show_backtrace_cmdlist);
 
index 8469bd6f6bc02ace91261f7e67410986bddaa470..4f63d29381caeeb573157d5c93b33d5835514697 100644 (file)
@@ -2877,6 +2877,7 @@ Set whether hppa target specific debugging information should be displayed.", "\
 Show whether hppa target specific debugging information is displayed.", "\
 This flag controls whether hppa target specific debugging information is\n\
 displayed.  This information is particularly useful for debugging frame\n\
-unwinding problems.", "hppa debug flag is %s.",
+unwinding problems.",
+                          NULL, /* PRINT hppa debug flag is %s.  */
                           NULL, NULL, &setdebuglist, &showdebuglist);
 }
index e2ef6b41a7a140413c8406b784bf067a8a0a7292..8febf82875e8c12c365dc505657bb324b8f1103e 100644 (file)
@@ -885,8 +885,8 @@ function.  However, some older debug info formats do not provide enough\n\
 information to determine that a function is prototyped.  If this flag is\n\
 set, GDB will perform the conversion for a function it considers\n\
 unprototyped.\n\
-The default is to perform the conversion.\n", "\
-Coercion of floats to doubles when calling functions is %s.",
+The default is to perform the conversion.\n",
+                          NULL, /* PRINT: Coercion of floats to doubles when calling functions is %s.  */
                           NULL, NULL, &setlist, &showlist);
 
   add_setshow_boolean_cmd ("unwindonsignal", no_class,
@@ -896,7 +896,7 @@ Show unwinding of stack if a signal is received while in a call dummy.", "\
 The unwindonsignal lets the user determine what gdb should do if a signal\n\
 is received while in a function called from gdb (call dummy).  If set, gdb\n\
 unwinds the stack and restore the context to what as it was before the call.\n\
-The default is to stop in the frame where the signal was received.", "\
-Unwinding of stack if a signal is received while in a call dummy is %s.",
+The default is to stop in the frame where the signal was received.",
+                          NULL, /* PRINT: Unwinding of stack if a signal is received while in a call dummy is %s.  */
                           NULL, NULL, &setlist, &showlist);
 }
index 3361c3c51a483052abb2e99031334a5a2587e9dc..2372e5d5c716df25dce762bf609880f8f8874083 100644 (file)
@@ -562,22 +562,22 @@ Specify the serial device it is connected to (e.g. /dev/ttya).";
   add_setshow_string_cmd ("download-path", class_obscure, &download_path, "\
 Set the default path for downloadable SREC files.", "\
 Show the default path for downloadable SREC files.", "\
-Determines the default path for downloadable SREC files.", "\
-The default path for downloadable SREC files is %s.",
+Determines the default path for downloadable SREC files.",
+                         NULL, /* PRINT: The default path for downloadable SREC files is %s.  */
                   NULL, NULL, &setlist, &showlist);
 
   add_setshow_string_cmd ("board-address", class_obscure, &board_addr, "\
 Set IP address for M32R-EVA target board.", "\
 Show IP address for M32R-EVA target board.", "\
-Determine the IP address for M32R-EVA target board.", "\
-IP address for M32R-EVA target board is %s",
+Determine the IP address for M32R-EVA target board.",
+                         NULL, /* PRINT: IP address for M32R-EVA target board is %s.  */
                   NULL, NULL, &setlist, &showlist);
 
   add_setshow_string_cmd ("server-address", class_obscure, &server_addr, "\
 Set IP address for download server (GDB's host computer).", "\
 Show IP address for download server (GDB's host computer).", "\
-Determine the IP address for download server (GDB's host computer).", "\
-IP address for download server (GDB's host computer) is %s.",
+Determine the IP address for download server (GDB's host computer).",
+                         NULL, /* PRINT: IP address for download server (GDB's host computer) is %s.  */
                   NULL, NULL, &setlist, &showlist);
 
   add_com ("upload", class_obscure, m32r_upload_command,
index 6b4b067851eac960251660b08b9d92c6bcafcbf6..3d357a48d6df3b581dd092160bc08c7b530751e5 100644 (file)
@@ -863,8 +863,8 @@ of time passes without a response from the target, an error occurs.",
                           &maintenance_profile_p, "\
 Set internal profiling.", "\
 Show internal profiling.", "\
-When enabled GDB is profiled.", "\
-Internal profiling is %s.",
+When enabled GDB is profiled.",
+                          NULL, /* PRINT: Internal profiling is %s.  */
                           maintenance_set_profile_cmd, NULL,
                           &maintenance_set_cmdlist,
                           &maintenance_show_cmdlist);
index 48a22b5dd104b442fd006a564ea481db06b3a76e..a2f5eb66144e73b10e4af29aa5aaacc485817602 100644 (file)
@@ -5187,8 +5187,8 @@ This option can be set to one of:\n\
   64    - Force GDB to treat saved GP registers as 64-bit\n\
   auto  - Allow GDB to use the target's default setting or autodetect the\n\
           saved GP register size from information contained in the executable.\n\
-          (default: auto)", "\
-Size of general purpose registers saved on the stack is %s.\n",
+          (default: auto)",
+                       NULL, /* PRINT: Size of general purpose registers saved on the stack is %s.  */
                        NULL, NULL, &setmipscmdlist, &showmipscmdlist);
 
   /* Allow the user to override the argument stack size. */
@@ -5200,8 +5200,8 @@ This option can be set to one of:\n\
   32    - Force GDB to allocate 32-bit chunks per argument\n\
   64    - Force GDB to allocate 64-bit chunks per argument\n\
   auto  - Allow GDB to determine the correct setting from the current\n\
-          target and executable (default)", "\
-The amount of stack space reserved for each argument is %s.\n",
+          target and executable (default)",
+                       NULL, /* PRINT: The amount of stack space reserved for each argument is %s.  */
                        NULL, NULL, &setmipscmdlist, &showmipscmdlist);
 
   /* Allow the user to override the ABI. */
@@ -5252,8 +5252,8 @@ Set the distance searched for the start of a function.\n", "\
 Show the distance searched for the start of a function.\n", "\
 If you are debugging a stripped executable, GDB needs to search through the\n\
 program for the start of a function.  This command sets the distance of the\n\
-search.  The only need to set it is when debugging a stripped executable.", "\
-The distance searched for the start of a function is %s.\n",
+search.  The only need to set it is when debugging a stripped executable.",
+                           NULL, /* PRINT: The distance searched for the start of a function is %s.  */
                            reinit_frame_cache_sfunc, NULL,
                            &setlist, &showlist);
 
@@ -5263,8 +5263,8 @@ The distance searched for the start of a function is %s.\n",
 Set zeroing of upper 32 bits of 64-bit addresses.", "\
 Show zeroing of upper 32 bits of 64-bit addresses.", "\
 Use \"on\" to enable the masking, \"off\" to disable it and \"auto\" to \n\
-allow GDB to determine the correct value.\n", "\
-Zerroing of upper 32 bits of 64-bit address is %s.",
+allow GDB to determine the correct value.\n",
+                               NULL, /* PRINT: Zerroing of upper 32 bits of 64-bit address is %s.  */
                                NULL, show_mask_address, &setmipscmdlist, &showmipscmdlist);
 
   /* Allow the user to control the size of 32 bit registers within the
@@ -5275,8 +5275,8 @@ Set compatibility with 64-bit MIPS target that transfers 32-bit quantities.", "\
 Show compatibility with 64-bit MIPS target that transfers 32-bit quantities.", "\
 Use \"on\" to enable backward compatibility with older MIPS 64 GDB+target\n\
 that would transfer 32 bits for some registers (e.g. SR, FSR) and\n\
-64 bits for others.  Use \"off\" to disable compatibility mode", "\
-Compatibility with 64-bit MIPS target that transfers 32-bit quantities is %s.",
+64 bits for others.  Use \"off\" to disable compatibility mode",
+                          NULL, /* PRINT: Compatibility with 64-bit MIPS target that transfers 32-bit quantities is %s.  */
  set_mips64_transfers_32bit_regs, NULL, &setlist, &showlist);
 
   /* Debug this files internals. */
@@ -5284,8 +5284,8 @@ Compatibility with 64-bit MIPS target that transfers 32-bit quantities is %s.",
                            &mips_debug, "\
 Set mips debugging.\n", "\
 Show mips debugging.\n", "\
-When non-zero, mips specific debugging is enabled.\n", "\
-Mips debugging is currently %s.\n",
+When non-zero, mips specific debugging is enabled.\n",
+                           NULL, /* PRINT: Mips debugging is currently %s.  */
                            NULL, NULL,
                            &setdebuglist, &showdebuglist);
 }
index 48514b80aaf0195c8ed29103f5921c5ebd6f89a1..e78e513e3d8c934de5013443ac3108ac95683aa1 100644 (file)
@@ -202,8 +202,8 @@ _initialize_observer (void)
   add_setshow_zinteger_cmd ("observer", class_maintenance, &observer_debug, "\
 Set observer debugging.", "\
 Show observer debugging.", "\
-When non-zero, observer debugging is enabled.", "\
-Observer debugging is %s.",
+When non-zero, observer debugging is enabled.",
+                           NULL, /* PRINT: Observer debugging is %s.  */
                            NULL, NULL,
                            &setdebuglist, &showdebuglist);
 }
index 2571b785582dc0a6d0e5e1ec06210f0e4cabed55..3d3f3cf67bc6d44f33b49bf68c1c83d3323600a6 100644 (file)
@@ -995,8 +995,8 @@ _initialize_remote_rdi (void)
 Set target has ROM at addr 0.", "\
 Show if target has ROM at addr 0.", "\
 A true value disables vector catching, false enables vector catching.\n\
-This is evaluated at the time the 'target rdi' command is executed.", "\
-Target has ROM at addr 0 is %s.",
+This is evaluated at the time the 'target rdi' command is executed.",
+                          NULL, /* PRINT: Target has ROM at addr 0 is %s.  */
                           NULL, NULL,
                           &setlist, &showlist);
 
@@ -1005,8 +1005,8 @@ Set enable for ADP heartbeat packets.", "\
 Show enable for ADP heartbeat packets.", "\
 I don't know why you would want this. If you enable them,\n\
 it will confuse ARM and EPI JTAG interface boxes as well\n\
-as the Angel Monitor.", "\
-Enable for ADP heartbeat packets is %s.",
+as the Angel Monitor.",
+                          NULL, /* PRINT: Enable for ADP heartbeat packets is %s.  */
                           NULL, NULL,
                           &setlist, &showlist);
 }
index 4cd4c449b90a46cb122ea8bd03cc775e3dc47b23..d84a57229ba9f797406b6701f2083f8e3487b4de 100644 (file)
@@ -660,7 +660,7 @@ add_packet_config_cmd (struct packet_config *config,
   cmd_name = xstrprintf ("%s-packet", title);
   add_setshow_auto_boolean_cmd (cmd_name, class_obscure,
                                &config->detect, set_doc, show_doc,
-                               "", print,
+                               "", NULL /*print*/,
                                set_func, show_func,
                                set_remote_list, show_remote_list);
   /* set/show remote NAME-packet {auto,on,off} -- legacy.  */
@@ -5600,8 +5600,8 @@ terminating `#' character and checksum.",
   add_setshow_boolean_cmd ("remotebreak", no_class, &remote_break, "\
 Set whether to send break if interrupted.", "\
 Show whether to send break if interrupted.", "\
-If set, a break, instead of a cntrl-c, is sent to the remote target.", "\
-Whether to send break if interrupted is %s.",
+If set, a break, instead of a cntrl-c, is sent to the remote target.",
+                          NULL, /* PRINT: Whether to send break if interrupted is %s.  */
                           NULL, NULL,
                           &setlist, &showlist);
 
@@ -5642,16 +5642,16 @@ Whether to send break if interrupted is %s.",
                            &remote_hw_watchpoint_limit, "\
 Set the maximum number of target hardware watchpoints.", "\
 Show the maximum number of target hardware watchpoints.", "\
-Specify a negative limit for unlimited.", "\
-The maximum number of target hardware watchpoints is %s.",
+Specify a negative limit for unlimited.",
+                           NULL, /* PRINT: The maximum number of target hardware watchpoints is %s.  */
                            NULL, NULL,
                            &remote_set_cmdlist, &remote_show_cmdlist);
   add_setshow_zinteger_cmd ("hardware-breakpoint-limit", no_class,
                            &remote_hw_breakpoint_limit, "\
 Set the maximum number of target hardware breakpoints.", "\
 Show the maximum number of target hardware breakpoints.", "\
-Specify a negative limit for unlimited.", "\
-The maximum number of target hardware breakpoints is %s.",
+Specify a negative limit for unlimited.",
+                           NULL, /* PRINT: The maximum number of target hardware breakpoints is %s.  */
                            NULL, NULL,
                            &remote_set_cmdlist, &remote_show_cmdlist);
 
@@ -5755,8 +5755,8 @@ in a memory packet.\n",
 Set use of remote protocol `Z' packets", "\
 Show use of remote protocol `Z' packets ", "\
 When set, GDB will attempt to use the remote breakpoint and watchpoint\n\
-packets.", "\
-Use of remote protocol `Z' packets is %s",
+packets.",
+                               NULL, /* PRINT: Use of remote protocol `Z' packets is %s.  */
                                set_remote_protocol_Z_packet_cmd,
                                show_remote_protocol_Z_packet_cmd,
                                &remote_set_cmdlist, &remote_show_cmdlist);
index 5a050afcb6f329cced8074c6357cd6fbc3fccbf3..e17cdaa56f913290c995d73ab92df448fff02713 100644 (file)
@@ -2569,8 +2569,8 @@ Set mode for reading from readonly sections.", "\
 Show mode for reading from readonly sections.", "\
 When this mode is on, memory reads from readonly sections (such as .text)\n\
 will be read from the object file instead of from the target.  This will\n\
-result in significant performance improvement for remote targets.", "\
-Mode for reading from readonly sections is %s.",
+result in significant performance improvement for remote targets.",
+                          NULL, /* PRINT: Mode for reading from readonly sections is %s.  */
                           NULL, NULL,
                           &setlist, &showlist);