mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-16 04:13:50 +08:00
Wed Mar 4 16:53:52 1998 Martin M. Hunt <hunt@cygnus.com>
* serial.c (_initialize_serial): Add a description of "set remotelogbase". * command.c (do_setshow_command): If no arguments are supplied, don't dump core, instead print out an error message.
This commit is contained in:
@ -1,3 +1,11 @@
|
|||||||
|
Wed Mar 4 16:53:52 1998 Martin M. Hunt <hunt@cygnus.com>
|
||||||
|
|
||||||
|
* serial.c (_initialize_serial): Add a description of
|
||||||
|
"set remotelogbase".
|
||||||
|
|
||||||
|
* command.c (do_setshow_command): If no arguments are supplied,
|
||||||
|
don't dump core, instead print out an error message.
|
||||||
|
|
||||||
Wed Mar 4 16:50:18 1998 Jason Molenda (crash@bugshack.cygnus.com)
|
Wed Mar 4 16:50:18 1998 Jason Molenda (crash@bugshack.cygnus.com)
|
||||||
|
|
||||||
* gdbtk.c (gdb_listfiles): Fix thinko in last change.
|
* gdbtk.c (gdb_listfiles): Fix thinko in last change.
|
||||||
|
@ -281,7 +281,6 @@ add_set_enum_cmd (name, class, enumlist, var, doc, list)
|
|||||||
{
|
{
|
||||||
struct cmd_list_element *c
|
struct cmd_list_element *c
|
||||||
= add_set_cmd (name, class, var_enum, var, doc, list);
|
= add_set_cmd (name, class, var_enum, var, doc, list);
|
||||||
|
|
||||||
c->enums = enumlist;
|
c->enums = enumlist;
|
||||||
|
|
||||||
return c;
|
return c;
|
||||||
@ -1269,6 +1268,21 @@ do_setshow_command (arg, from_tty, c)
|
|||||||
char *match = NULL;
|
char *match = NULL;
|
||||||
char *p;
|
char *p;
|
||||||
|
|
||||||
|
/* if no argument was supplied, print an informative error message */
|
||||||
|
if (arg == NULL)
|
||||||
|
{
|
||||||
|
char msg[1024];
|
||||||
|
strcpy (msg, "Requires an argument. Valid arguments are ");
|
||||||
|
for (i = 0; c->enums[i]; i++)
|
||||||
|
{
|
||||||
|
if (i != 0)
|
||||||
|
strcat (msg, ", ");
|
||||||
|
strcat (msg, c->enums[i]);
|
||||||
|
}
|
||||||
|
strcat (msg, ".");
|
||||||
|
error (msg);
|
||||||
|
}
|
||||||
|
|
||||||
p = strchr (arg, ' ');
|
p = strchr (arg, ' ');
|
||||||
|
|
||||||
if (p)
|
if (p)
|
||||||
|
@ -517,7 +517,7 @@ by gdbserver.", &setlist),
|
|||||||
add_show_from_set (add_set_enum_cmd ("remotelogbase", no_class,
|
add_show_from_set (add_set_enum_cmd ("remotelogbase", no_class,
|
||||||
logbase_enums,
|
logbase_enums,
|
||||||
(char *)&serial_logbase,
|
(char *)&serial_logbase,
|
||||||
"Set ...",
|
"Set numerical base for remote session logging",
|
||||||
&setlist),
|
&setlist),
|
||||||
&showlist);
|
&showlist);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user