aboutsummaryrefslogtreecommitdiff
path: root/gdb/xcoffread.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2018-05-20 22:45:44 -0600
committerTom Tromey <tom@tromey.com>2018-07-16 08:55:21 -0600
commit652788a73137d8c16ac67a0cf9a8e51dd336d09e (patch)
tree4f569a0ee787371750a169035ddee26d169f8c8b /gdb/xcoffread.c
parent8419ee5331d5b3253d2bfe1a039f12a167292dfc (diff)
downloadgdb-652788a73137d8c16ac67a0cf9a8e51dd336d09e.zip
gdb-652788a73137d8c16ac67a0cf9a8e51dd336d09e.tar.gz
gdb-652788a73137d8c16ac67a0cf9a8e51dd336d09e.tar.bz2
Make free_pending_blocks static
free_pending_blocks can be static because scoped_free_pendings (et al) arrange for it to be NULL in the "steady state". This removes a couple of unnecessary calls to free_pending_blocks and changes it to be static. gdb/ChangeLog 2018-07-16 Tom Tromey <tom@tromey.com> * xcoffread.c (xcoff_initial_scan): Don't call free_pending_blocks. * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks. * buildsym.h (class scoped_free_pendings): Add constructor. (free_pending_blocks): Don't declare. * buildsym.c (scoped_free_pendings::scoped_free_pendings): New. (free_pending_blocks): Now static.
Diffstat (limited to 'gdb/xcoffread.c')
-rw-r--r--gdb/xcoffread.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c
index 31ba503..f9f19e7 100644
--- a/gdb/xcoffread.c
+++ b/gdb/xcoffread.c
@@ -3018,8 +3018,6 @@ xcoff_initial_scan (struct objfile *objfile, symfile_add_flags symfile_flags)
include N_SLINE. */
init_psymbol_list (objfile, num_symbols);
- free_pending_blocks ();
-
scoped_free_pendings free_pending;
minimal_symbol_reader reader (objfile);