summaryrefslogtreecommitdiff
path: root/gdb/objfiles.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2018-05-29 13:51:58 -0600
committerTom Tromey <tom@tromey.com>2018-06-18 13:16:45 -0600
commit06424eac62da949519c0c641fbc3e8372a9c7f0b (patch)
tree047b910268ca63e6c6d34502df1bdc5722366874 /gdb/objfiles.h
parentb4be9fadea469e2c937c81a8f1d3243206f9bcfc (diff)
downloadbinutils-gdb-06424eac62da949519c0c641fbc3e8372a9c7f0b.tar.gz
Remove resume_section_map_updates_cleanup
This removes resume_section_map_updates_cleanup, replacing it with a scoped_restore. Tested by the buildbot. gdb/ChangeLog 2018-06-18 Tom Tromey <tom@tromey.com> * objfiles.h (inhibit_section_map_updates): Update. (resume_section_map_updates, resume_section_map_updates_cleanup): Remove. * solib-svr4.c (svr4_handle_solib_event): Update. * objfiles.c (inhibit_section_map_updates): Return scoped_restore_tmpl<int>. (resume_section_map_updates, resume_section_map_updates_cleanup): Remove.
Diffstat (limited to 'gdb/objfiles.h')
-rw-r--r--gdb/objfiles.h19
1 files changed, 7 insertions, 12 deletions
diff --git a/gdb/objfiles.h b/gdb/objfiles.h
index 28e66eca362..7a9087b0158 100644
--- a/gdb/objfiles.h
+++ b/gdb/objfiles.h
@@ -551,18 +551,13 @@ DECLARE_REGISTRY(objfile);
/* In normal use, the section map will be rebuilt by find_pc_section
if objfiles have been added, removed or relocated since it was last
called. Calling inhibit_section_map_updates will inhibit this
- behavior until resume_section_map_updates is called. If you call
- inhibit_section_map_updates you must ensure that every call to
- find_pc_section in the inhibited region relates to a section that
- is already in the section map and has not since been removed or
- relocated. */
-extern void inhibit_section_map_updates (struct program_space *pspace);
-
-/* Resume automatically rebuilding the section map as required. */
-extern void resume_section_map_updates (struct program_space *pspace);
-
-/* Version of the above suitable for use as a cleanup. */
-extern void resume_section_map_updates_cleanup (void *arg);
+ behavior until the returned scoped_restore object is destroyed. If
+ you call inhibit_section_map_updates you must ensure that every
+ call to find_pc_section in the inhibited region relates to a
+ section that is already in the section map and has not since been
+ removed or relocated. */
+extern scoped_restore_tmpl<int> inhibit_section_map_updates
+ (struct program_space *pspace);
extern void default_iterate_over_objfiles_in_search_order
(struct gdbarch *gdbarch,