aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2018-06-05 09:42:15 -0600
committerTom Tromey <tom@tromey.com>2018-06-28 08:20:59 -0600
commitd95d3aef9e63242e732e293e1f081d40d0d27eda (patch)
tree74018f795eac6296d0367c55cec2bd03db7671a3 /gdb/coffread.c
parentRemove 2 excessive executable permission flags (diff)
downloadbinutils-gdb-d95d3aef9e63242e732e293e1f081d40d0d27eda.tar.gz
binutils-gdb-d95d3aef9e63242e732e293e1f081d40d0d27eda.tar.bz2
binutils-gdb-d95d3aef9e63242e732e293e1f081d40d0d27eda.zip
Make dwarf2_free_objfile static
I noticed that dwarf2_free_objfile can be made static, by changing it to be a registry cleanup function. This simplifies the code, as well, because now symbol readers don't have to explicitly call it. Tested by the buildbot. gdb/ChangeLog 2018-06-28 Tom Tromey <tom@tromey.com> * coffread.c (coff_symfile_finish): Update. * xcoffread.c (xcoff_symfile_finish): Update. * elfread.c (elf_symfile_finish): Update. * symfile.h (dwarf2_free_objfile): Don't declare. * dwarf2read.c (_initialize_dwarf2_read): Use register_objfile_data_with_cleanup. (dwarf2_free_objfile): Now static. Change signature.
Diffstat (limited to 'gdb/coffread.c')
-rw-r--r--gdb/coffread.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/gdb/coffread.c b/gdb/coffread.c
index bc266fb60e3..30583e1dda4 100644
--- a/gdb/coffread.c
+++ b/gdb/coffread.c
@@ -766,8 +766,6 @@ coff_symfile_finish (struct objfile *objfile)
{
/* Let stabs reader clean up. */
stabsread_clear_cache ();
-
- dwarf2_free_objfile (objfile);
}