* cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
of prefixes. Don't print the prefix twice in the CLI.
This commit is contained in:
parent
c4143af614
commit
37fc812e64
2 changed files with 9 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2004-05-10 Daniel Jacobowitz <drow@mvista.com>
|
||||||
|
|
||||||
|
* cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
|
||||||
|
of prefixes. Don't print the prefix twice in the CLI.
|
||||||
|
|
||||||
2004-05-10 Jim Blandy <jimb@redhat.com>
|
2004-05-10 Jim Blandy <jimb@redhat.com>
|
||||||
|
|
||||||
* ppc-tdep.h (struct gdbarch_tdep): Change definition of
|
* ppc-tdep.h (struct gdbarch_tdep): Change definition of
|
||||||
|
|
|
@ -364,8 +364,10 @@ cmd_show_list (struct cmd_list_element *list, int from_tty, char *prefix)
|
||||||
{
|
{
|
||||||
struct cleanup *optionlist_chain
|
struct cleanup *optionlist_chain
|
||||||
= make_cleanup_ui_out_tuple_begin_end (uiout, "optionlist");
|
= make_cleanup_ui_out_tuple_begin_end (uiout, "optionlist");
|
||||||
ui_out_field_string (uiout, "prefix", list->prefixname + 5);
|
char *new_prefix = strstr (list->prefixname, "show ") + 5;
|
||||||
cmd_show_list (*list->prefixlist, from_tty, list->prefixname + 5);
|
if (ui_out_is_mi_like_p (uiout))
|
||||||
|
ui_out_field_string (uiout, "prefix", new_prefix);
|
||||||
|
cmd_show_list (*list->prefixlist, from_tty, new_prefix);
|
||||||
/* Close the tuple. */
|
/* Close the tuple. */
|
||||||
do_cleanups (optionlist_chain);
|
do_cleanups (optionlist_chain);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue