import gdb-1999-06-14 snapshot
[deliverable/binutils-gdb.git] / gdb / symmisc.c
index c876e4bca9dc26086139cd30d55d4249ecaab56f..c615bfcdea27d89f65917f17eacf8b1449f203fa 100644 (file)
@@ -63,8 +63,6 @@ static int block_depth PARAMS ((struct block *));
 static void print_partial_symbols PARAMS ((struct partial_symbol **, int, 
                                            char *, GDB_FILE *));
 
-static int print_symbol PARAMS ((char *));
-
 static void free_symtab_block PARAMS ((struct objfile *, struct block *));
 
 void _initialize_symmisc PARAMS ((void));
@@ -75,7 +73,7 @@ struct print_symbol_args {
   GDB_FILE *outfile;
 };
 
-static int print_symbol PARAMS ((char *));
+static int print_symbol PARAMS ((PTR));
 
 static void
 free_symtab_block PARAMS ((struct objfile *, struct block *));
@@ -156,8 +154,6 @@ free_symtab (s)
   mfree (s -> objfile -> md, (PTR) s);
 }
 
-#if MAINTENANCE_CMDS
-
 void
 print_symbol_bcache_statistics ()
 {
@@ -527,7 +523,7 @@ Arguments missing: an output file name and an optional symbol file name");
     {
       nomem (0);
     }
-  cleanups = make_cleanup ((make_cleanup_func) freeargv, (char *) argv);
+  cleanups = make_cleanup_freeargv (argv);
 
   if (argv[0] != NULL)
     {
@@ -562,7 +558,7 @@ Arguments missing: an output file name and an optional symbol file name");
 
 static int
 print_symbol (args)
-     char *args;
+     PTR args;
 {
   struct symbol *symbol = ((struct print_symbol_args *)args)->symbol;
   int depth = ((struct print_symbol_args *)args)->depth;
@@ -764,7 +760,7 @@ maintenance_print_psymbols (args, from_tty)
     {
       nomem (0);
     }
-  cleanups = make_cleanup ((make_cleanup_func) freeargv, (char *) argv);
+  cleanups = make_cleanup_freeargv (argv);
 
   if (argv[0] != NULL)
     {
@@ -912,7 +908,7 @@ maintenance_print_msymbols (args, from_tty)
     {
       nomem (0);
     }
-  cleanups = make_cleanup ((make_cleanup_func) freeargv, argv);
+  cleanups = make_cleanup_freeargv (argv);
 
   if (argv[0] != NULL)
     {
@@ -1057,8 +1053,6 @@ block_depth (block)
   return i;
 }
 
-#endif /* MAINTENANCE_CMDS */
-
 \f
 /* Increase the space allocated for LISTP, which is probably
    global_psymbols or static_psymbols. This space will eventually
This page took 0.024416 seconds and 4 git commands to generate.