From 7e955d83c4128ec773d84b92487ed1cdfed09938 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 15 Jan 2019 17:06:38 -0700 Subject: 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 * progspace.h (program_space) : New typedef. : 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/jit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/jit.c') diff --git a/gdb/jit.c b/gdb/jit.c index b1cf2f5..81c4af4 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); -- cgit v1.1