summaryrefslogtreecommitdiff
path: root/gdb/minsyms.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2000-05-16 04:07:39 +0000
committerAndrew Cagney <cagney@redhat.com>2000-05-16 04:07:39 +0000
commit74e98f490bc9e06f6dbef4bcc0b7fdf9fa15eaec (patch)
tree584a202e1d3c9e1c38a6409a92e61245e91beab7 /gdb/minsyms.c
parent4feb1296e35584661d22d2db3b44239201565372 (diff)
downloadgdb-74e98f490bc9e06f6dbef4bcc0b7fdf9fa15eaec.tar.gz
Cleanup discard_minimal_symbols cleanup.
Diffstat (limited to 'gdb/minsyms.c')
-rw-r--r--gdb/minsyms.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/gdb/minsyms.c b/gdb/minsyms.c
index a032dd35115..0e24663a35e 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