gdb: remove cmd_list_element::pre_show_hook

This is unused, remove it.

gdb/ChangeLog:

	* cli/cli-decode.h (struct cmd_list_element) <pre_show_hook>:
	Remove.
	* cli/cli-setshow.c (do_show_command): Adjust.

Change-Id: Ib9cd79d842550392b062309e1e5c079ad5d7571a
This commit is contained in:
Simon Marchi 2021-05-13 10:13:48 -04:00
parent 0522d0165a
commit 0b2256f772
3 changed files with 6 additions and 8 deletions

View file

@ -708,10 +708,6 @@ do_show_command (const char *arg, int from_tty, struct cmd_list_element *c)
gdb_assert (c->type == show_cmd);
/* Possibly call the pre hook. */
if (c->pre_show_hook)
(c->pre_show_hook) (c);
std::string val = get_setshow_command_value_string (c);
/* FIXME: cagney/2005-02-10: There should be MI and CLI specific