aboutsummaryrefslogtreecommitdiff
path: root/gdb/dbxread.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/dbxread.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/dbxread.c')
-rw-r--r--gdb/dbxread.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/gdb/dbxread.c b/gdb/dbxread.c
index 7729315..5d4b978 100644
--- a/gdb/dbxread.c
+++ b/gdb/dbxread.c
@@ -545,7 +545,6 @@ dbx_symfile_read (struct objfile *objfile, symfile_add_flags symfile_flags)
symbol_size = DBX_SYMBOL_SIZE (objfile);
symbol_table_offset = DBX_SYMTAB_OFFSET (objfile);
- free_pending_blocks ();
scoped_free_pendings free_pending;
minimal_symbol_reader reader (objfile);