mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-13 10:55:46 +08:00
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.
This commit is contained in:
@ -1,5 +1,12 @@
|
|||||||
2005-02-17 Andrew Cagney <cagney@gnu.org>
|
2005-02-17 Andrew Cagney <cagney@gnu.org>
|
||||||
|
|
||||||
|
* cli/cli-decode.c (add_setshow_string_noescape_cmd): New function.
|
||||||
|
* command.h (add_setshow_string_noescape_cmd): Declare.
|
||||||
|
* wince.c (_initialize_wince): Use.
|
||||||
|
* symfile.c (_initialize_symfile): Use.
|
||||||
|
(set_ext_lang_command): Update declaration.
|
||||||
|
* corefile.c (_initialize_core): Use.
|
||||||
|
|
||||||
* cli/cli-decode.c (add_setshow_cmd_full, add_setshow_enum_cmd)
|
* cli/cli-decode.c (add_setshow_cmd_full, add_setshow_enum_cmd)
|
||||||
(add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
|
(add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
|
||||||
(add_setshow_filename_cmd, add_setshow_string_cmd)
|
(add_setshow_filename_cmd, add_setshow_string_cmd)
|
||||||
|
@ -514,6 +514,25 @@ add_setshow_string_cmd (char *name, enum command_class class,
|
|||||||
NULL, NULL);
|
NULL, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Add element named NAME to both the set and show command LISTs (the
|
||||||
|
list for set/show or some sublist thereof). */
|
||||||
|
void
|
||||||
|
add_setshow_string_noescape_cmd (char *name, enum command_class class,
|
||||||
|
char **var,
|
||||||
|
const char *set_doc, const char *show_doc,
|
||||||
|
const char *help_doc,
|
||||||
|
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_noescape, var,
|
||||||
|
set_doc, show_doc, help_doc,
|
||||||
|
set_func, show_func,
|
||||||
|
set_list, show_list,
|
||||||
|
NULL, NULL);
|
||||||
|
}
|
||||||
|
|
||||||
/* Add element named NAME to both the set and show command LISTs (the
|
/* Add element named NAME to both the set and show command LISTs (the
|
||||||
list for set/show or some sublist thereof). CLASS is as in
|
list for set/show or some sublist thereof). CLASS is as in
|
||||||
add_cmd. VAR is address of the variable which will contain the
|
add_cmd. VAR is address of the variable which will contain the
|
||||||
|
@ -290,6 +290,17 @@ extern void add_setshow_string_cmd (char *name,
|
|||||||
struct cmd_list_element **set_list,
|
struct cmd_list_element **set_list,
|
||||||
struct cmd_list_element **show_list);
|
struct cmd_list_element **show_list);
|
||||||
|
|
||||||
|
extern void add_setshow_string_noescape_cmd (char *name,
|
||||||
|
enum command_class class,
|
||||||
|
char **var,
|
||||||
|
const char *set_doc,
|
||||||
|
const char *show_doc,
|
||||||
|
const char *help_doc,
|
||||||
|
cmd_sfunc_ftype *set_func,
|
||||||
|
show_value_ftype *show_func,
|
||||||
|
struct cmd_list_element **set_list,
|
||||||
|
struct cmd_list_element **show_list);
|
||||||
|
|
||||||
extern void add_setshow_uinteger_cmd (char *name,
|
extern void add_setshow_uinteger_cmd (char *name,
|
||||||
enum command_class class,
|
enum command_class class,
|
||||||
unsigned int *var,
|
unsigned int *var,
|
||||||
|
@ -448,13 +448,15 @@ No arg means have no core file. This command has been superseded by the\n\
|
|||||||
`target core' and `detach' commands."), &cmdlist);
|
`target core' and `detach' commands."), &cmdlist);
|
||||||
set_cmd_completer (c, filename_completer);
|
set_cmd_completer (c, filename_completer);
|
||||||
|
|
||||||
c = add_set_cmd ("gnutarget", class_files, var_string_noescape,
|
|
||||||
(char *) &gnutarget_string,
|
add_setshow_string_noescape_cmd ("gnutarget", class_files,
|
||||||
"Set the current BFD target.\n\
|
&gnutarget_string, _("(\
|
||||||
Use `set gnutarget auto' to specify automatic detection.",
|
Set the current BFD target."), _("\
|
||||||
&setlist);
|
Show the current BFD target."), _("\
|
||||||
set_cmd_sfunc (c, set_gnutarget_command);
|
Use `set gnutarget auto' to specify automatic detection."),
|
||||||
deprecated_add_show_from_set (c, &showlist);
|
set_gnutarget_command,
|
||||||
|
NULL, /* FIXME: i18n: */
|
||||||
|
&setlist, &showlist);
|
||||||
|
|
||||||
if (getenv ("GNUTARGET"))
|
if (getenv ("GNUTARGET"))
|
||||||
set_gnutarget (getenv ("GNUTARGET"));
|
set_gnutarget (getenv ("GNUTARGET"));
|
||||||
|
@ -138,8 +138,6 @@ static int simple_overlay_update_1 (struct obj_section *);
|
|||||||
|
|
||||||
static void add_filename_language (char *ext, enum language lang);
|
static void add_filename_language (char *ext, enum language lang);
|
||||||
|
|
||||||
static void set_ext_lang_command (char *args, int from_tty);
|
|
||||||
|
|
||||||
static void info_ext_lang_command (char *args, int from_tty);
|
static void info_ext_lang_command (char *args, int from_tty);
|
||||||
|
|
||||||
static char *find_separate_debug_file (struct objfile *objfile);
|
static char *find_separate_debug_file (struct objfile *objfile);
|
||||||
@ -2090,7 +2088,7 @@ add_filename_language (char *ext, enum language lang)
|
|||||||
static char *ext_args;
|
static char *ext_args;
|
||||||
|
|
||||||
static void
|
static void
|
||||||
set_ext_lang_command (char *args, int from_tty)
|
set_ext_lang_command (char *args, int from_tty, struct cmd_list_element *e)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
char *cp = ext_args;
|
char *cp = ext_args;
|
||||||
@ -3596,12 +3594,14 @@ for access from GDB."), &cmdlist);
|
|||||||
|
|
||||||
/* Filename extension to source language lookup table: */
|
/* Filename extension to source language lookup table: */
|
||||||
init_filename_language_table ();
|
init_filename_language_table ();
|
||||||
c = add_set_cmd ("extension-language", class_files, var_string_noescape,
|
add_setshow_string_noescape_cmd ("extension-language", class_files,
|
||||||
(char *) &ext_args,
|
&ext_args, _("\
|
||||||
"Set mapping between filename extension and source language.\n\
|
Set mapping between filename extension and source language."), _("\
|
||||||
Usage: set extension-language .foo bar",
|
Show mapping between filename extension and source language."), _("\
|
||||||
&setlist);
|
Usage: set extension-language .foo bar"),
|
||||||
set_cmd_cfunc (c, set_ext_lang_command);
|
set_ext_lang_command,
|
||||||
|
NULL, /* FIXME: i18n: */
|
||||||
|
&setlist, &showlist);
|
||||||
|
|
||||||
add_info ("extensions", info_ext_lang_command,
|
add_info ("extensions", info_ext_lang_command,
|
||||||
_("All filename extensions associated with a source language."));
|
_("All filename extensions associated with a source language."));
|
||||||
|
28
gdb/wince.c
28
gdb/wince.c
@ -2020,22 +2020,22 @@ _initialize_wince (void)
|
|||||||
struct cmd_list_element *set;
|
struct cmd_list_element *set;
|
||||||
init_child_ops ();
|
init_child_ops ();
|
||||||
|
|
||||||
deprecated_add_show_from_set
|
add_setshow_string_noescape_cmd ("remotedirectory", no_class,
|
||||||
(add_set_cmd ((char *) "remotedirectory", no_class,
|
&remote_directory, _("\
|
||||||
var_string_noescape, (char *) &remote_directory,
|
Set directory for remote upload."), _("\
|
||||||
(char *) "Set directory for remote upload.\n",
|
Show directory for remote upload."), NULL,
|
||||||
&setlist),
|
NULL, /* FIXME: i18n: */
|
||||||
&showlist);
|
NULL, NULL,
|
||||||
|
&setlist, &showlist);
|
||||||
remote_directory = xstrdup (remote_directory);
|
remote_directory = xstrdup (remote_directory);
|
||||||
|
|
||||||
set = add_set_cmd ((char *) "remoteupload", no_class,
|
add_setshow_string_noescape_cmd ("remoteupload", no_class,
|
||||||
var_string_noescape, (char *) &remote_upload,
|
&remote_upload, _("\
|
||||||
(char *) "\
|
Set how to upload executables to remote device."), _("\
|
||||||
Set how to upload executables to remote device.\n",
|
Show how to upload executables to remote device."), NULL,
|
||||||
&setlist);
|
NULL, /* FIXME: i18n: */
|
||||||
|
set_upload_type, NULL,
|
||||||
deprecated_add_show_from_set (set, &showlist);
|
&setlist, &showlist);
|
||||||
set_cmd_cfunc (set, set_upload_type);
|
|
||||||
set_upload_type (NULL, 0);
|
set_upload_type (NULL, 0);
|
||||||
|
|
||||||
deprecated_add_show_from_set
|
deprecated_add_show_from_set
|
||||||
|
Reference in New Issue
Block a user