diff options
author | Andrew Cagney <cagney@redhat.com> | 2000-05-22 09:02:23 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2000-05-22 09:02:23 +0000 |
commit | 8bc03e33b431d1eb24d0bf62bd6de8541cc8a587 (patch) | |
tree | 9b21100bd147ba7660ed8beef02555b41563366a /gdb/dbxread.c | |
parent | d9d44fe4c56f9fbb4e2db06384fc6ec08aa4bfd9 (diff) | |
download | gdb-8bc03e33b431d1eb24d0bf62bd6de8541cc8a587.tar.gz |
Purge (almost) make_cleanup_func.
Diffstat (limited to 'gdb/dbxread.c')
-rw-r--r-- | gdb/dbxread.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/gdb/dbxread.c b/gdb/dbxread.c index 4c38fb490cc..f2012b45974 100644 --- a/gdb/dbxread.c +++ b/gdb/dbxread.c @@ -1094,6 +1094,18 @@ free_bincl_list (objfile) bincls_allocated = 0; } +static void +do_free_bincl_list_cleanup (void *objfile) +{ + free_bincl_list (objfile); +} + +static struct cleanup * +make_cleanup_free_bincl_list (struct objfile *objfile) +{ + return make_cleanup (do_free_bincl_list_cleanup, objfile); +} + /* Scan a SunOs dynamic symbol table for symbols of interest and add them to the minimal symbol table. */ @@ -1295,7 +1307,7 @@ read_dbx_symtab (objfile) /* Init bincl list */ init_bincl_list (20, objfile); - back_to = make_cleanup ((make_cleanup_func) free_bincl_list, objfile); + back_to = make_cleanup_free_bincl_list (objfile); last_source_file = NULL; |