aboutsummaryrefslogtreecommitdiff
path: root/gdb/command.h
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@redhat.com>2023-04-04 10:10:44 +0100
committerAndrew Burgess <aburgess@redhat.com>2023-04-28 22:50:46 +0100
commitb63c50f9d4bd3c202150b480796ef8cfd4cc6875 (patch)
tree9968bbaa34aecc5a669b31b6acc34bd92d14de4d /gdb/command.h
parent598e87ecc064cd8ffc2af4bcde4186d30382f4d5 (diff)
downloadgdb-b63c50f9d4bd3c202150b480796ef8cfd4cc6875.zip
gdb-b63c50f9d4bd3c202150b480796ef8cfd4cc6875.tar.gz
gdb-b63c50f9d4bd3c202150b480796ef8cfd4cc6875.tar.bz2
gdb: make deprecated_show_value_hack static
The deprecated_show_value_hack function is now only used inside cli-setshow.c, so lets make the function static to discourage its use anywhere else. There should be no user visible changes after this commit Reviewed-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/command.h')
-rw-r--r--gdb/command.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/gdb/command.h b/gdb/command.h
index e9c9f16..a4641bb 100644
--- a/gdb/command.h
+++ b/gdb/command.h
@@ -656,16 +656,11 @@ extern void complete_on_enum (completion_tracker &tracker,
extern void help_list (struct cmd_list_element *, const char *,
enum command_class, struct ui_file *);
-/* Method for show a set/show variable's VALUE on FILE. If this
- method isn't supplied deprecated_show_value_hack() is called (which
- is not good). */
+/* Method for show a set/show variable's VALUE on FILE. */
typedef void (show_value_ftype) (struct ui_file *file,
int from_tty,
struct cmd_list_element *cmd,
const char *value);
-/* NOTE: i18n: This function is not i18n friendly. Callers should
- instead print the value out directly. */
-extern show_value_ftype deprecated_show_value_hack;
/* Various sets of extra literals accepted. */
extern const literal_def integer_unlimited_literals[];