diff options
author | Tom Tromey <tom@tromey.com> | 2017-04-06 20:27:10 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2017-04-12 11:16:17 -0600 |
commit | c83dd8672698bcdf48d27e267e481230075f5900 (patch) | |
tree | 3a32b27c8908e22f0698bf29661b1aa4aa2a3b47 /gdb/dwarf2read.c | |
parent | 0e8621a0bec2d0840b853c4104614f345f0569ca (diff) | |
download | fsf-binutils-gdb-c83dd8672698bcdf48d27e267e481230075f5900.zip fsf-binutils-gdb-c83dd8672698bcdf48d27e267e481230075f5900.tar.gz fsf-binutils-gdb-c83dd8672698bcdf48d27e267e481230075f5900.tar.bz2 |
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 <tom@tromey.com>
* symfile.h (increment_reading_symtab): Update type.
* symfile.c (decrement_reading_symtab): Remove.
(increment_reading_symtab): Return a scoped_restore_tmpl<int>.
* psymtab.c (psymtab_to_symtab): Update.
* dwarf2read.c (dw2_instantiate_symtab): Update.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r-- | gdb/dwarf2read.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |