diff options
author | Tom Tromey <tom@tromey.com> | 2019-01-15 17:06:38 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-01-17 15:42:00 -0700 |
commit | 7e955d83c4128ec773d84b92487ed1cdfed09938 (patch) | |
tree | 95fd2b230aa1ec340efdf069c98423ae73a6d6bd /gdb/jit.c | |
parent | 2030c079717475f5b6fad837bb81758891f3b802 (diff) | |
download | binutils-gdb-7e955d83c4128ec773d84b92487ed1cdfed09938.tar.gz |
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.
Diffstat (limited to 'gdb/jit.c')
-rw-r--r-- | gdb/jit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/jit.c b/gdb/jit.c index b1cf2f5bb75..81c4af40f92 100644 --- a/gdb/jit.c +++ b/gdb/jit.c @@ -1391,7 +1391,7 @@ jit_breakpoint_re_set (void) static void jit_inferior_exit_hook (struct inferior *inf) { - for (objfile *objf : all_objfiles_safe (current_program_space)) + for (objfile *objf : current_program_space->objfiles_safe ()) { struct jit_objfile_data *objf_data = (struct jit_objfile_data *) objfile_data (objf, jit_objfile_data); |