Cleanup discard_minimal_symbols cleanup.
[deliverable/binutils-gdb.git] / gdb / minsyms.c
index a032dd35115cffafcd2ee08609b925cf55203005..0e24663a35eff3090cb4cf3eaef713dc82b5141f 100644 (file)
@@ -743,10 +743,8 @@ compare_minimal_symbols (fn1p, fn2p)
    obstack and then simply blow the obstack away when we are done with
    it.  Is it worth the extra trouble though? */
 
-/* ARGSUSED */
-void
-discard_minimal_symbols (foo)
-     int foo;
+static void
+do_discard_minimal_symbols_cleanup (void *arg)
 {
   register struct msym_bunch *next;
 
@@ -758,6 +756,13 @@ discard_minimal_symbols (foo)
     }
 }
 
+struct cleanup *
+make_cleanup_discard_minimal_symbols (void)
+{
+  return make_cleanup (do_discard_minimal_symbols_cleanup, 0);
+}
+
+
 
 /* Compact duplicate entries out of a minimal symbol table by walking
    through the table and compacting out entries with duplicate addresses
This page took 0.023511 seconds and 4 git commands to generate.