aboutsummaryrefslogtreecommitdiff
path: root/gdb/symfile.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2017-04-06 20:27:10 -0600
committerTom Tromey <tom@tromey.com>2017-04-12 11:16:17 -0600
commitc83dd8672698bcdf48d27e267e481230075f5900 (patch)
tree3a32b27c8908e22f0698bf29661b1aa4aa2a3b47 /gdb/symfile.h
parent0e8621a0bec2d0840b853c4104614f345f0569ca (diff)
downloadgdb-c83dd8672698bcdf48d27e267e481230075f5900.zip
gdb-c83dd8672698bcdf48d27e267e481230075f5900.tar.gz
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/symfile.h')
-rw-r--r--gdb/symfile.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/symfile.h b/gdb/symfile.h
index 6066481..ab536e8 100644
--- a/gdb/symfile.h
+++ b/gdb/symfile.h
@@ -556,7 +556,7 @@ extern int symfile_map_offsets_to_segments (bfd *,
struct symfile_segment_data *get_symfile_segment_data (bfd *abfd);
void free_symfile_segment_data (struct symfile_segment_data *data);
-extern struct cleanup *increment_reading_symtab (void);
+extern scoped_restore_tmpl<int> increment_reading_symtab (void);
void expand_symtabs_matching
(gdb::function_view<expand_symtabs_file_matcher_ftype> file_matcher,