Move type stack handling to a new class
[deliverable/binutils-gdb.git] / gdb / command.h
index 505375e9ed76847281e3c43ea64e9eb1cd012f72..4a239a71965d0e164f8fdefeb27af5cbc49da530 100644 (file)
@@ -1,6 +1,6 @@
 /* Header file for command creation.
 
-   Copyright (C) 1986-2017 Free Software Foundation, Inc.
+   Copyright (C) 1986-2019 Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -18,7 +18,7 @@
 #if !defined (COMMAND_H)
 #define COMMAND_H 1
 
-#include "gdb_vecs.h"
+#include "common/gdb_vecs.h"
 #include "common/scoped_restore.h"
 
 struct completion_tracker;
@@ -148,6 +148,12 @@ extern struct cmd_list_element *add_cmd (const char *, enum command_class,
                                         const char *,
                                         struct cmd_list_element **);
 
+extern struct cmd_list_element *add_cmd_suppress_notification
+                       (const char *name, enum command_class theclass,
+                        cmd_const_cfunc_ftype *fun, const char *doc,
+                        struct cmd_list_element **list,
+                        int *suppress_notification);
+
 extern struct cmd_list_element *add_alias_cmd (const char *, const char *,
                                               enum command_class, int,
                                               struct cmd_list_element **);
@@ -165,6 +171,14 @@ extern struct cmd_list_element *add_prefix_cmd (const char *, enum command_class
                                                const char *, int,
                                                struct cmd_list_element **);
 
+extern struct cmd_list_element *add_prefix_cmd_suppress_notification
+                       (const char *name, enum command_class theclass,
+                        cmd_const_cfunc_ftype *fun,
+                        const char *doc, struct cmd_list_element **prefixlist,
+                        const char *prefixname, int allow_unknown,
+                        struct cmd_list_element **list,
+                        int *suppress_notification);
+
 extern struct cmd_list_element *add_abbrev_prefix_cmd (const char *,
                                                       enum command_class,
                                                       cmd_const_cfunc_ftype *fun,
@@ -300,7 +314,8 @@ extern void add_setshow_enum_cmd (const char *name,
                                  cmd_const_sfunc_ftype *set_func,
                                  show_value_ftype *show_func,
                                  struct cmd_list_element **set_list,
-                                 struct cmd_list_element **show_list);
+                                 struct cmd_list_element **show_list,
+                                 void *context = nullptr);
 
 extern void add_setshow_auto_boolean_cmd (const char *name,
                                          enum command_class theclass,
This page took 0.024213 seconds and 4 git commands to generate.