Change all_objfiles_safe adapter to be a method on program_space
authorTom Tromey <tom@tromey.com>
Wed, 16 Jan 2019 00:06:38 +0000 (17:06 -0700)
committerTom Tromey <tom@tromey.com>
Thu, 17 Jan 2019 22:42:00 +0000 (15:42 -0700)
commit7e955d83c4128ec773d84b92487ed1cdfed09938
tree95fd2b230aa1ec340efdf069c98423ae73a6d6bd
parent2030c079717475f5b6fad837bb81758891f3b802
Change all_objfiles_safe adapter to be a method on program_space

This changes the all_objfiles_safe range adapter to be a method on the
program space, and fixes up all the users.

gdb/ChangeLog
2019-01-15  Tom Tromey  <tom@tromey.com>

* progspace.h (program_space) <objfiles_safe_range>: New
typedef.
<objfiles_safe>: New method.
* objfiles.h (class all_objfiles_safe): Remove.
* objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
* jit.c (jit_inferior_exit_hook): Update.
gdb/ChangeLog
gdb/jit.c
gdb/objfiles.c
gdb/objfiles.h
gdb/progspace.h