nindy bug fixes (function types) and opcode library inclusion
[deliverable/binutils-gdb.git] / gdb / defs.h
index a4b0a23f7310146eb695a8ce8b9816996e0ca215..d093646475ee813393badc38ee73b1c39a208ddf 100644 (file)
@@ -57,7 +57,7 @@ enum command_class
   /* Classes of commands */
   no_class = -1, class_run = 0, class_vars, class_stack,
   class_files, class_support, class_info, class_breakpoint,
-  class_alias, class_obscure, class_user
+  class_alias, class_obscure, class_user, class_maintenance
 };
 
 /* the cleanup list records things that have to be undone
@@ -664,8 +664,10 @@ qsort PARAMS ((void *base, size_t nmemb,           /* 4.10.5.2 */
               size_t size,
               int (*comp)(const void *, const void *)));
 
+#ifndef        MEM_FNS_DECLARED        /* Some non-ANSI use void *, not char *.  */
 extern PTR
 memcpy PARAMS ((void *, const void *, size_t));                /* 4.11.2.1 */
+#endif
 
 extern int
 memcmp PARAMS ((const void *, const void *, size_t));  /* 4.11.4.1 */
@@ -682,8 +684,10 @@ strstr PARAMS ((const char *, const char *));              /* 4.11.5.7 */
 extern char *
 strtok PARAMS ((char *, const char *));                        /* 4.11.5.8 */
 
+#ifndef        MEM_FNS_DECLARED        /* Some non-ANSI use void *, not char *.  */
 extern PTR
 memset PARAMS ((void *, int, size_t));                 /* 4.11.6.1 */
+#endif
 
 extern char *
 strerror PARAMS ((int));                               /* 4.11.6.2 */
@@ -696,7 +700,11 @@ strerror PARAMS ((int));                           /* 4.11.6.2 */
 #  ifdef sparc
 #   include <alloca.h>         /* NOTE:  Doesn't declare alloca() */
 #  endif
-   extern PTR alloca PARAMS ((size_t));
+#  ifdef __STDC__
+   extern void *alloca (size_t);
+#  else /* __STDC__ */
+   extern char *alloca ();
+#  endif
 # endif
 #endif
 
@@ -779,4 +787,19 @@ push_word PARAMS ((CORE_ADDR, REGISTER_TYPE));
 extern CORE_ADDR
 push_word ();
 
+/* Some parts of gdb might be considered optional, in the sense that they
+   are not essential for being able to build a working, usable debugger
+   for a specific environment.  For example, the maintenance commands
+   are there for the benefit of gdb maintainers.  As another example,
+   some environments really don't need gdb's that are able to read N
+   different object file formats.  In order to make it possible (but
+   not necessarily recommended) to build "stripped down" versions of
+   gdb, the following defines control selective compilation of those
+   parts of gdb which can be safely left out when necessary.  Note that
+   the default is to include everything. */
+
+#ifndef MAINTENANCE_CMDS
+#define MAINTENANCE_CMDS 1
+#endif
+
 #endif /* !defined (DEFS_H) */
This page took 0.024584 seconds and 4 git commands to generate.