This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Move enum command_class to command.h
- To: gdb-patches at sourceware dot cygnus dot com
- Subject: Move enum command_class to command.h
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Sat, 25 Sep 1999 18:00:57 +1000
- Newsgroups: cygnus.patches.gdb
- Organization: Cygnus Solutions
Hello,
I've just checked in the attached. I've checked compiling for about 20
different targets. And it appears that all is ok. Anything using
command_class should have #included command.h anyway.
enjoy,
Andrew
Thu Sep 23 20:48:22 1999 Andrew Cagney <cagney@b1.cygnus.com>
* defs.h (enum command_class): Move from here.
* command.h (command_class): To here.
Index: command.h
===================================================================
RCS file: /cvs/cvsfiles/devo/gdb/command.h,v
retrieving revision 1.15
diff -p -r1.15 command.h
*** command.h 1999/07/07 23:51:03 1.15
--- command.h 1999/09/25 07:54:22
***************
*** 19,24 ****
--- 19,41 ----
#if !defined (COMMAND_H)
#define COMMAND_H 1
+ /* Command classes are top-level categories into which commands are broken
+ down for "help" purposes.
+ Notes on classes: class_alias is for alias commands which are not
+ abbreviations of the original command. class-pseudo is for
+ commands which are not really commands nor help topics ("stop"). */
+
+ enum command_class
+ {
+ /* Special args to help_list */
+ class_deprecated, all_classes = -2, all_commands = -1,
+ /* Classes of commands */
+ no_class = -1, class_run = 0, class_vars, class_stack,
+ class_files, class_support, class_info, class_breakpoint, class_trace,
+ class_alias, class_obscure, class_user, class_maintenance,
+ class_pseudo, class_tui, class_xdb,
+ };
+
/* Not a set/show command. Note that some commands which begin with
"set" or "show" might be in this category, if their syntax does
not fall into one of the following categories. */
Index: defs.h
===================================================================
RCS file: /cvs/cvsfiles/devo/gdb/defs.h,v
retrieving revision 1.257
diff -p -r1.257 defs.h
*** defs.h 1999/09/24 23:20:14 1.257
--- defs.h 1999/09/25 07:54:33
*************** extern void quit PARAMS ((void));
*** 165,187 ****
}
#endif
- /* Command classes are top-level categories into which commands are broken
- down for "help" purposes.
- Notes on classes: class_alias is for alias commands which are not
- abbreviations of the original command. class-pseudo is for commands
- which are not really commands nor help topics ("stop"). */
-
- enum command_class
- {
- /* Special args to help_list */
- all_classes = -2, all_commands = -1,
- /* Classes of commands */
- no_class = -1, class_run = 0, class_vars, class_stack,
- class_files, class_support, class_info, class_breakpoint, class_trace,
- class_alias, class_obscure, class_user, class_maintenance,
- class_pseudo, class_tui, class_xdb
- };
-
/* Languages represented in the symbol table and elsewhere.
This should probably be in language.h, but since enum's can't
be forward declared to satisfy opaque references before their
--- 165,170 ----