From 343cc95202fce70383551053f2efab09c5e02366 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Fri, 1 Nov 2019 21:02:38 -0600 Subject: Move free_all_objfiles to program_space This changes free_all_objfiles to be a method on program_space, in line with the other changes to treat program_space as a container for objfiles. gdb/ChangeLog 2019-12-12 Tom Tromey * symfile.c (symbol_file_clear): Update. * progspace.h (struct program_space) : Declare method. * progspace.c (program_space::free_all_objfiles): New method. * objfiles.h (free_all_objfiles): Don't declare. * objfiles.c (free_all_objfiles): Move to program_space. Change-Id: I908b549d2981b6005f7ca181fc0e6d24fc8b7b6f --- gdb/objfiles.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'gdb/objfiles.h') diff --git a/gdb/objfiles.h b/gdb/objfiles.h index f9bf102bc80..34240558da3 100644 --- a/gdb/objfiles.h +++ b/gdb/objfiles.h @@ -662,8 +662,6 @@ extern void build_objfile_section_table (struct objfile *); extern void free_objfile_separate_debug (struct objfile *); -extern void free_all_objfiles (void); - extern void objfile_relocate (struct objfile *, const struct section_offsets *); extern void objfile_rebase (struct objfile *, CORE_ADDR); -- cgit v1.2.1