+2005-02-17 Andrew Cagney <cagney@gnu.org>
+
+ * cli/cli-decode.c (add_setshow_cmd_full, add_setshow_enum_cmd)
+ (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): Delete
+ fprint_setshow parameter.
+ * command.h (fprint_setshow_ftype): Delete.
+ (add_setshow_cmd_full, add_setshow_enum_cmd)
+ (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): Delete
+ fprint_setshow parameter.
+ * aix-thread.c, alpha-tdep.c, arm-tdep.c, breakpoint.c: Update.
+ * complaints.c, cris-tdep.c, dwarf2read.c, frame.c: Update.
+ * hppa-tdep.c, infcall.c, m32r-rom.c, maint.c: Update.
+ * mips-tdep.c, nto-tdep.c, observer.c, remote-rdi.c: Update
+ * remote.c, target.c, cli/cli-logging.c: Update.
+
2005-02-16 Andrew Cagney <cagney@gnu.org>
Merge setshow print and show parameters.
_("Set debugging of AIX thread module."),
_("Show debugging of AIX thread module."),
_("Enables debugging output (used to debug GDB)."),
- NULL, /* FIXME: i18n: Debugging of AIX thread module is \"%d\". */
- NULL, NULL, &setdebuglist, &showdebuglist);
+ NULL, NULL, /* FIXME: i18n: Debugging of AIX thread module is \"%d\". */
+ &setdebuglist, &showdebuglist);
}
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."),
+ reinit_frame_cache_sfunc,
NULL, /* FIXME: i18n: The distance searched for the start of a function is \"%d\". */
- reinit_frame_cache_sfunc, NULL,
&setlist, &showlist);
}
_("Set the disassembly style."),
_("Show the disassembly style."),
helptext,
+ set_disassembly_style_sfunc,
NULL, /* FIXME: i18n: The disassembly style is \"%s\". */
- set_disassembly_style_sfunc, NULL,
&setarmcmdlist, &showarmcmdlist);
add_setshow_boolean_cmd ("apcs32", no_class, &arm_apcs_32,
_("Set usage of ARM 32-bit mode."),
_("Show usage of ARM 32-bit mode."),
_("When off, a 26-bit PC will be used."),
+ NULL,
NULL, /* FIXME: i18n: Usage of ARM 32-bit mode is %s. */
- NULL, NULL,
&setarmcmdlist, &showarmcmdlist);
/* Add a command to allow the user to force the FPU model. */
fpa - FPA co-processor (GCC compiled).\n\
softvfp - Software FP with pure-endian doubles.\n\
vfp - VFP co-processor."),
- NULL, /* FIXME: i18n: "The floating point type is \"%s\". */
set_fp_model_sfunc, show_fp_model,
&setarmcmdlist, &showarmcmdlist);
_("Set ARM debugging."),
_("Show ARM debugging."),
_("When on, arm-specific debugging is enabled."),
+ NULL,
NULL, /* FIXME: i18n: "ARM debugging is %s. */
- NULL, NULL,
&setdebuglist, &showdebuglist);
}
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."),
+ NULL,
NULL, /* FIXME: i18n: Debugger's behavior regarding pending breakpoints is %s. */
- NULL, NULL,
&breakpoint_set_cmdlist,
&breakpoint_show_cmdlist);
var_types var_type, void *var,
const char *set_doc, const char *show_doc,
const char *help_doc,
- fprint_setshow_ftype *fprint_setshow,
cmd_sfunc_ftype *set_func,
show_value_ftype *show_func,
struct cmd_list_element **set_list,
const char *set_doc,
const char *show_doc,
const char *help_doc,
- fprint_setshow_ftype *fprint_setshow,
cmd_sfunc_ftype *set_func,
show_value_ftype *show_func,
struct cmd_list_element **set_list,
struct cmd_list_element *c;
add_setshow_cmd_full (name, class, var_enum, var,
set_doc, show_doc, help_doc,
- fprint_setshow,
set_func, show_func,
set_list, show_list,
&c, NULL);
enum auto_boolean *var,
const char *set_doc, const char *show_doc,
const char *help_doc,
- fprint_setshow_ftype *fprint_setshow,
cmd_sfunc_ftype *set_func,
show_value_ftype *show_func,
struct cmd_list_element **set_list,
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, fprint_setshow,
+ set_doc, show_doc, help_doc,
set_func, show_func,
set_list, show_list,
&c, NULL);
add_setshow_boolean_cmd (char *name, enum command_class class, int *var,
const char *set_doc, const char *show_doc,
const char *help_doc,
- fprint_setshow_ftype *fprint_setshow,
cmd_sfunc_ftype *set_func,
show_value_ftype *show_func,
struct cmd_list_element **set_list,
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, fprint_setshow,
+ set_doc, show_doc, help_doc,
set_func, show_func,
set_list, show_list,
&c, NULL);
char **var,
const char *set_doc, const char *show_doc,
const char *help_doc,
- fprint_setshow_ftype *fprint_setshow,
cmd_sfunc_ftype *set_func,
show_value_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, fprint_setshow,
+ set_doc, show_doc, help_doc,
set_func, show_func,
set_list, show_list,
NULL, NULL);
char **var,
const char *set_doc, const char *show_doc,
const char *help_doc,
- fprint_setshow_ftype *fprint_setshow,
cmd_sfunc_ftype *set_func,
show_value_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, fprint_setshow,
+ set_doc, show_doc, help_doc,
set_func, show_func,
set_list, show_list,
NULL, NULL);
unsigned int *var,
const char *set_doc, const char *show_doc,
const char *help_doc,
- fprint_setshow_ftype *fprint_setshow,
cmd_sfunc_ftype *set_func,
show_value_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, fprint_setshow,
+ set_doc, show_doc, help_doc,
set_func, show_func,
set_list, show_list,
NULL, NULL);
int *var,
const char *set_doc, const char *show_doc,
const char *help_doc,
- fprint_setshow_ftype *fprint_setshow,
cmd_sfunc_ftype *set_func,
show_value_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, fprint_setshow,
+ set_doc, show_doc, help_doc,
set_func, show_func,
set_list, show_list,
NULL, NULL);
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."),
+ NULL,
NULL, /* FIXME: i18n: Whether logging overwrites or appends to the log file is %s. */
- NULL, NULL, &set_logging_cmdlist, &show_logging_cmdlist);
+ &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."),
+ NULL,
NULL, /* FIXME: i18n: The logging output mode is %s. */
- NULL, NULL, &set_logging_cmdlist, &show_logging_cmdlist);
+ &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."),
+ NULL,
NULL, /* FIXME: i18n: The current logfile is %s. */
- NULL, NULL,
&set_logging_cmdlist, &show_logging_cmdlist);
add_cmd ("on", class_support, set_logging_on,
_("Enable logging."), &set_logging_cmdlist);
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);
-
/* Method for show a set/show variable's VALUE on FILE. If this
method isn't supplied deprecated_show_value_hack() is called (which
is not good). */
const char *set_doc,
const char *show_doc,
const char *help_doc,
- fprint_setshow_ftype *fprint_setshow,
cmd_sfunc_ftype *set_func,
show_value_ftype *show_func,
struct cmd_list_element **set_list,
const char *set_doc,
const char *show_doc,
const char *help_doc,
- fprint_setshow_ftype *fprint_setshow,
cmd_sfunc_ftype *set_func,
show_value_ftype *show_func,
struct cmd_list_element **set_list,
enum command_class class,
int *var,
const char *set_doc, const char *show_doc,
- const char *help_doc, fprint_setshow_ftype *fprint_setshow,
+ const char *help_doc,
cmd_sfunc_ftype *set_func,
show_value_ftype *show_func,
struct cmd_list_element **set_list,
const char *set_doc,
const char *show_doc,
const char *help_doc,
- fprint_setshow_ftype *fprint_setshow,
cmd_sfunc_ftype *set_func,
show_value_ftype *show_func,
struct cmd_list_element **set_list,
const char *set_doc,
const char *show_doc,
const char *help_doc,
- fprint_setshow_ftype *fprint_setshow,
cmd_sfunc_ftype *set_func,
show_value_ftype *show_func,
struct cmd_list_element **set_list,
const char *set_doc,
const char *show_doc,
const char *help_doc,
- fprint_setshow_ftype *fprint_setshow,
cmd_sfunc_ftype *set_func,
show_value_ftype *show_func,
struct cmd_list_element **set_list,
const char *set_doc,
const char *show_doc,
const char *help_doc,
- fprint_setshow_ftype *fprint_setshow,
cmd_sfunc_ftype *set_func,
show_value_ftype *show_func,
struct cmd_list_element **set_list,
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,
- NULL, /* IGNORE */
NULL, complaints_show_value,
&setlist, &showlist);
}
_("Set the current CRIS version."),
_("Show the current CRIS version."),
_("Set if autodetection fails."),
+ set_cris_version,
NULL, /* FIXME: i18n: Current CRIS version is %s. */
- set_cris_version, NULL,
&setlist, &showlist);
add_setshow_boolean_cmd ("cris-dwarf2-cfi", class_support,
_("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."),
+ set_cris_dwarf2_cfi,
NULL, /* FIXME: i18n: Usage of Dwarf-2 CFI for CRIS is %d. */
- set_cris_dwarf2_cfi, NULL,
&setlist, &showlist);
deprecated_add_core_fns (&cris_elf_core_fns);
A higher limit means that cached compilation units will be stored\n\
in memory longer, and more total memory will be used. Zero disables\n\
caching, which can slow down startup."),
+ NULL,
NULL, /* FIXME: i18n: The upper bound on the age of cached dwarf2 compilation units is %d. */
- NULL, NULL, &set_dwarf2_cmdlist,
+ &set_dwarf2_cmdlist,
&show_dwarf2_cmdlist);
}
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."),
+ NULL,
NULL, /* FIXME: i18n: Whether backtraces should continue past \"main\" is %s. */
- NULL, NULL, &set_backtrace_cmdlist,
+ &set_backtrace_cmdlist,
&show_backtrace_cmdlist);
add_setshow_boolean_cmd ("past-entry", class_obscure,
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."),
+ NULL,
NULL, /* FIXME: i18n: Whether backtraces should continue past the entry point is %s. */
- NULL, NULL, &set_backtrace_cmdlist,
+ &set_backtrace_cmdlist,
&show_backtrace_cmdlist);
add_setshow_uinteger_cmd ("limit", class_obscure,
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."),
+ NULL,
NULL, /* FIXME: i18n: An upper bound on the number of backtrace levels is %s. */
- NULL, NULL, &set_backtrace_cmdlist,
+ &set_backtrace_cmdlist,
&show_backtrace_cmdlist);
/* Debug this files internals. */
This flag controls whether hppa target specific debugging information is\n\
displayed. This information is particularly useful for debugging frame\n\
unwinding problems."),
+ NULL,
NULL, /* FIXME: i18n: hppa debug flag is %s. */
- NULL, NULL, &setdebuglist, &showdebuglist);
+ &setdebuglist, &showdebuglist);
}
set, GDB will perform the conversion for a function it considers\n\
unprototyped.\n\
The default is to perform the conversion.\n"),
+ NULL,
NULL, /* FIXME: i18n: Coercion of floats to doubles when calling functions is %s. */
- NULL, NULL, &setlist, &showlist);
+ &setlist, &showlist);
add_setshow_boolean_cmd ("unwindonsignal", no_class,
&unwind_on_signal_p, _("\
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."),
+ NULL,
NULL, /* FIXME: i18n: Unwinding of stack if a signal is received while in a call dummy is %s. */
- NULL, NULL, &setlist, &showlist);
+ &setlist, &showlist);
}
Set the default path for downloadable SREC files."), _("\
Show the default path for downloadable SREC files."), _("\
Determines the default path for downloadable SREC files."),
+ NULL,
NULL, /* FIXME: i18n: The default path for downloadable SREC files is %s. */
- NULL, NULL, &setlist, &showlist);
+ &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."),
+ NULL,
NULL, /* FIXME: i18n: IP address for M32R-EVA target board is %s. */
- NULL, NULL, &setlist, &showlist);
+ &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)."),
+ NULL,
NULL, /* FIXME: i18n: IP address for download server (GDB's host computer) is %s. */
- NULL, NULL, &setlist, &showlist);
+ &setlist, &showlist);
add_com ("upload", class_obscure, m32r_upload_command, _("\
Upload the srec file via the monitor's Ethernet upload capability."));
Set internal profiling."), _("\
Show internal profiling."), _("\
When enabled GDB is profiled."),
+ maintenance_set_profile_cmd,
NULL, /* FIXME: i18n: Internal profiling is %s. */
- maintenance_set_profile_cmd, NULL,
&maintenance_set_cmdlist,
&maintenance_show_cmdlist);
}
auto - Allow GDB to use the target's default setting or autodetect the\n\
saved GP register size from information contained in the\n\
executable (default)."),
+ NULL,
NULL, /* FIXME: i18n: Size of general purpose registers saved on the stack is %s. */
- NULL, NULL, &setmipscmdlist, &showmipscmdlist);
+ &setmipscmdlist, &showmipscmdlist);
/* Allow the user to override the argument stack size. */
add_setshow_enum_cmd ("stack-arg-size", class_obscure,
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)"),
+ NULL,
NULL, /* FIXME: i18n: The amount of stack space reserved for each argument is %s. */
- NULL, NULL, &setmipscmdlist, &showmipscmdlist);
+ &setmipscmdlist, &showmipscmdlist);
/* Allow the user to override the ABI. */
c = add_set_enum_cmd
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."),
+ reinit_frame_cache_sfunc,
NULL, /* FIXME: i18n: The distance searched for the start of a function is %s. */
- reinit_frame_cache_sfunc, NULL,
&setlist, &showlist);
/* Allow the user to control whether the upper bits of 64-bit
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."),
- NULL, /* FIXME: i18n: Zerroing of upper 32 bits of 64-bit address is %s. */
NULL, show_mask_address,
&setmipscmdlist, &showmipscmdlist);
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"),
+ set_mips64_transfers_32bit_regs,
NULL, /* FIXME: i18n: 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. */
Set mips debugging."), _("\
Show mips debugging."), _("\
When non-zero, mips specific debugging is enabled."),
+ NULL,
NULL, /* FIXME: i18n: Mips debugging is currently %s. */
- NULL, NULL,
&setdebuglist, &showdebuglist);
}
When non-zero, nto specific debug info is\n\
displayed. Different information is displayed\n\
for different positive values."),
+ NULL,
NULL, /* FIXME: i18n: QNX NTO internal debugging is %s. */
- NULL, NULL, &setdebuglist, &showdebuglist);
+ &setdebuglist, &showdebuglist);
}
Set observer debugging."), _("\
Show observer debugging."), _("\
When non-zero, observer debugging is enabled."),
+ NULL,
NULL, /* FIXME: i18n: Observer debugging is %s. */
- NULL, NULL,
&setdebuglist, &showdebuglist);
}
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."),
+ NULL,
NULL, /* FIXME: i18n: Target has ROM at addr 0 is %s. */
- NULL, NULL,
&setlist, &showlist);
add_setshow_boolean_cmd ("rdiheartbeat", no_class, &rdi_heartbeat, _("\
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."),
+ NULL,
NULL, /* FIXME: i18n: Enable for ADP heartbeat packets is %s. */
- NULL, NULL,
&setlist, &showlist);
}
/* set/show TITLE-packet {auto,on,off} */
cmd_name = xstrprintf ("%s-packet", title);
add_setshow_auto_boolean_cmd (cmd_name, class_obscure,
- &config->detect, set_doc, show_doc,
- "", NULL /* FIXME: i18n: Print message is? */,
+ &config->detect, set_doc, show_doc, NULL, /* help_doc */
set_func, show_func,
set_remote_list, show_remote_list);
/* set/show remote NAME-packet {auto,on,off} -- legacy. */
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."),
- NULL, /* FIXME: i18n: Whether to send break if interrupted is %s. */
- NULL, NULL,
+ NULL, NULL, /* FIXME: i18n: Whether to send break if interrupted is %s. */
&setlist, &showlist);
/* Install commands for configuring memory read/write packets. */
Set the maximum number of target hardware watchpoints."), _("\
Show the maximum number of target hardware watchpoints."), _("\
Specify a negative limit for unlimited."),
- NULL, /* FIXME: i18n: The maximum number of target hardware watchpoints is %s. */
- NULL, NULL,
+ NULL, NULL, /* FIXME: i18n: The maximum number of target hardware watchpoints is %s. */
&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."),
- NULL, /* FIXME: i18n: The maximum number of target hardware breakpoints is %s. */
- NULL, NULL,
+ NULL, NULL, /* FIXME: i18n: The maximum number of target hardware breakpoints is %s. */
&remote_set_cmdlist, &remote_show_cmdlist);
deprecated_add_show_from_set
Show use of remote protocol `Z' packets "), _("\
When set, GDB will attempt to use the remote breakpoint and watchpoint\n\
packets."),
- NULL, /* FIXME: i18n: Use of remote protocol `Z' packets is %s. */
set_remote_protocol_Z_packet_cmd,
- show_remote_protocol_Z_packet_cmd,
+ show_remote_protocol_Z_packet_cmd, /* FIXME: i18n: Use of remote protocol `Z' packets is %s. */
&remote_set_cmdlist, &remote_show_cmdlist);
/* Eventually initialize fileio. See fileio.c */
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."),
+ NULL,
NULL, /* FIXME: i18n: Mode for reading from readonly sections is %s. */
- NULL, NULL,
&setlist, &showlist);
add_com ("monitor", class_obscure, do_monitor_command,