From 56e290f494ab802bbc5c26c445dad0d1e6a7f37b Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Tue, 16 May 2000 04:07:39 +0000 Subject: Cleanup discard_minimal_symbols cleanup. --- gdb/minsyms.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'gdb/minsyms.c') diff --git a/gdb/minsyms.c b/gdb/minsyms.c index a032dd3..0e24663 100644 --- a/gdb/minsyms.c +++ b/gdb/minsyms.c @@ -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 -- cgit v1.1