diff options
author | Andrew Cagney <cagney@redhat.com> | 2005-02-10 17:32:53 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2005-02-10 17:32:53 +0000 |
commit | 335cca0d6ecc363f7fd22244823deb8e2a657088 (patch) | |
tree | 1968b155ea79f7fc0a41be3f793b55df982a42fa | |
parent | 899506a887012d40285dfbadfe6991442d1aead9 (diff) | |
download | gdb-335cca0d6ecc363f7fd22244823deb8e2a657088.zip gdb-335cca0d6ecc363f7fd22244823deb8e2a657088.tar.gz gdb-335cca0d6ecc363f7fd22244823deb8e2a657088.tar.bz2 |
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.
-rw-r--r-- | gdb/ChangeLog | 30 | ||||
-rw-r--r-- | gdb/alpha-tdep.c | 3 | ||||
-rw-r--r-- | gdb/arm-tdep.c | 8 | ||||
-rw-r--r-- | gdb/breakpoint.c | 4 | ||||
-rw-r--r-- | gdb/cli/cli-decode.c | 40 | ||||
-rw-r--r-- | gdb/cli/cli-decode.h | 4 | ||||
-rw-r--r-- | gdb/cli/cli-logging.c | 12 | ||||
-rw-r--r-- | gdb/cli/cli-setshow.c | 8 | ||||
-rw-r--r-- | gdb/command.h | 21 | ||||
-rw-r--r-- | gdb/complaints.c | 14 | ||||
-rw-r--r-- | gdb/cris-tdep.c | 4 | ||||
-rw-r--r-- | gdb/dwarf2read.c | 3 | ||||
-rw-r--r-- | gdb/frame.c | 12 | ||||
-rw-r--r-- | gdb/hppa-tdep.c | 3 | ||||
-rw-r--r-- | gdb/infcall.c | 8 | ||||
-rw-r--r-- | gdb/m32r-rom.c | 12 | ||||
-rw-r--r-- | gdb/maint.c | 4 | ||||
-rw-r--r-- | gdb/mips-tdep.c | 24 | ||||
-rw-r--r-- | gdb/observer.c | 4 | ||||
-rw-r--r-- | gdb/remote-rdi.c | 8 | ||||
-rw-r--r-- | gdb/remote.c | 18 | ||||
-rw-r--r-- | gdb/target.c | 4 |
22 files changed, 158 insertions, 90 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index cb77707..0b06bd0 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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. diff --git a/gdb/alpha-tdep.c b/gdb/alpha-tdep.c index 5b01051..142bc32 100644 --- a/gdb/alpha-tdep.c +++ b/gdb/alpha-tdep.c @@ -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); } diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c index 0d12630..8352bf3 100644 --- a/gdb/arm-tdep.c +++ b/gdb/arm-tdep.c @@ -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); } diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index da37ea8..1fdc212 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -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); diff --git a/gdb/cli/cli-decode.c b/gdb/cli/cli-decode.c index 1e91572..40d5cd6 100644 --- a/gdb/cli/cli-decode.c +++ b/gdb/cli/cli-decode.c @@ -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); diff --git a/gdb/cli/cli-decode.h b/gdb/cli/cli-decode.h index 15732af..d00ff09 100644 --- a/gdb/cli/cli-decode.h +++ b/gdb/cli/cli-decode.h @@ -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 diff --git a/gdb/cli/cli-logging.c b/gdb/cli/cli-logging.c index 6b32b33..773a420 100644 --- a/gdb/cli/cli-logging.c +++ b/gdb/cli/cli-logging.c @@ -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, diff --git a/gdb/cli/cli-setshow.c b/gdb/cli/cli-setshow.c index 73e47a4..8f84345a 100644 --- a/gdb/cli/cli-setshow.c +++ b/gdb/cli/cli-setshow.c @@ -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. */ diff --git a/gdb/command.h b/gdb/command.h index 5b7a542..355355e 100644 --- a/gdb/command.h +++ b/gdb/command.h @@ -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, diff --git a/gdb/complaints.c b/gdb/complaints.c index 3f9be14..d060090 100644 --- a/gdb/complaints.c +++ b/gdb/complaints.c @@ -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); diff --git a/gdb/cris-tdep.c b/gdb/cris-tdep.c index 5a31b8b..15407cf 100644 --- a/gdb/cris-tdep.c +++ b/gdb/cris-tdep.c @@ -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); diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 8fe38fe..cc346ff 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -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); } diff --git a/gdb/frame.c b/gdb/frame.c index 054b062..bcc5516 100644 --- a/gdb/frame.c +++ b/gdb/frame.c @@ -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); diff --git a/gdb/hppa-tdep.c b/gdb/hppa-tdep.c index 8469bd6..4f63d29 100644 --- a/gdb/hppa-tdep.c +++ b/gdb/hppa-tdep.c @@ -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); } diff --git a/gdb/infcall.c b/gdb/infcall.c index e2ef6b4..8febf82 100644 --- a/gdb/infcall.c +++ b/gdb/infcall.c @@ -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); } diff --git a/gdb/m32r-rom.c b/gdb/m32r-rom.c index 3361c3c..2372e5d 100644 --- a/gdb/m32r-rom.c +++ b/gdb/m32r-rom.c @@ -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, diff --git a/gdb/maint.c b/gdb/maint.c index 6b4b067..3d357a4 100644 --- a/gdb/maint.c +++ b/gdb/maint.c @@ -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); diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c index 48a22b5..a2f5eb6 100644 --- a/gdb/mips-tdep.c +++ b/gdb/mips-tdep.c @@ -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); } diff --git a/gdb/observer.c b/gdb/observer.c index 48514b8..e78e513 100644 --- a/gdb/observer.c +++ b/gdb/observer.c @@ -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); } diff --git a/gdb/remote-rdi.c b/gdb/remote-rdi.c index 2571b78..3d3f3cf 100644 --- a/gdb/remote-rdi.c +++ b/gdb/remote-rdi.c @@ -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); } diff --git a/gdb/remote.c b/gdb/remote.c index 4cd4c44..d84a572 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -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); diff --git a/gdb/target.c b/gdb/target.c index 5a050af..e17cdaa 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -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); |