diff options
author | Tom Tromey <tom@tromey.com> | 2018-05-29 13:51:58 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2018-06-18 13:16:45 -0600 |
commit | 06424eac62da949519c0c641fbc3e8372a9c7f0b (patch) | |
tree | 047b910268ca63e6c6d34502df1bdc5722366874 /gdb/objfiles.h | |
parent | b4be9fadea469e2c937c81a8f1d3243206f9bcfc (diff) | |
download | gdb-06424eac62da949519c0c641fbc3e8372a9c7f0b.zip gdb-06424eac62da949519c0c641fbc3e8372a9c7f0b.tar.gz gdb-06424eac62da949519c0c641fbc3e8372a9c7f0b.tar.bz2 |
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.h | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/gdb/objfiles.h b/gdb/objfiles.h index 28e66ec..7a9087b 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, |