aboutsummaryrefslogtreecommitdiff
path: root/gdb/cli/cli-decode.h
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2021-05-13 10:13:48 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2021-05-13 10:13:48 -0400
commit0b2256f772883cf5ea9fecb0d720ca8ea8629198 (patch)
tree19477b85a834cd16e926cb564f4f7db1d67dc19a /gdb/cli/cli-decode.h
parent0522d0165adaa6fccb4d4ff706d0e0b2996e4b80 (diff)
downloadfsf-binutils-gdb-0b2256f772883cf5ea9fecb0d720ca8ea8629198.zip
fsf-binutils-gdb-0b2256f772883cf5ea9fecb0d720ca8ea8629198.tar.gz
fsf-binutils-gdb-0b2256f772883cf5ea9fecb0d720ca8ea8629198.tar.bz2
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
Diffstat (limited to 'gdb/cli/cli-decode.h')
-rw-r--r--gdb/cli/cli-decode.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/gdb/cli/cli-decode.h b/gdb/cli/cli-decode.h
index 214428e..da6013a 100644
--- a/gdb/cli/cli-decode.h
+++ b/gdb/cli/cli-decode.h
@@ -187,10 +187,6 @@ struct cmd_list_element
/* If this command is deprecated, this is the replacement name. */
const char *replacement = nullptr;
- /* If this command represents a show command, then this function
- is called before the variable's value is examined. */
- void (*pre_show_hook) (struct cmd_list_element *c) = nullptr;
-
/* Hook for another command to be executed before this command. */
struct cmd_list_element *hook_pre = nullptr;