From c83dd8672698bcdf48d27e267e481230075f5900 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Thu, 6 Apr 2017 20:27:10 -0600 Subject: Change increment_reading_symtab to return a scoped_restore This changes increment_reading_symtab to return a scoped_restore, then fixes up the users. gdb/ChangeLog 2017-04-12 Tom Tromey * symfile.h (increment_reading_symtab): Update type. * symfile.c (decrement_reading_symtab): Remove. (increment_reading_symtab): Return a scoped_restore_tmpl. * psymtab.c (psymtab_to_symtab): Update. * dwarf2read.c (dw2_instantiate_symtab): Update. --- gdb/dwarf2read.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/dwarf2read.c') diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index e390b32..b58d0fc 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -2885,7 +2885,7 @@ dw2_instantiate_symtab (struct dwarf2_per_cu_data *per_cu) if (!per_cu->v.quick->compunit_symtab) { struct cleanup *back_to = make_cleanup (free_cached_comp_units, NULL); - increment_reading_symtab (); + scoped_restore decrementer = increment_reading_symtab (); dw2_do_instantiate_symtab (per_cu); process_cu_includes (); do_cleanups (back_to); -- cgit v1.1