aboutsummaryrefslogtreecommitdiff
path: root/gdb/symfile.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2020-10-29 15:04:33 -0600
committerTom Tromey <tom@tromey.com>2020-10-29 15:04:39 -0600
commit2a3f84af539b4dc5473c44b0a01c1bcdfc7a1300 (patch)
tree480cc0467b823b8acc2d398f44e1125bb0edc746 /gdb/symfile.c
parent004eecfdc7d9b47e8364719667c64edb22d12d44 (diff)
downloadgdb-2a3f84af539b4dc5473c44b0a01c1bcdfc7a1300.zip
gdb-2a3f84af539b4dc5473c44b0a01c1bcdfc7a1300.tar.gz
gdb-2a3f84af539b4dc5473c44b0a01c1bcdfc7a1300.tar.bz2
Change remove_target_sections to method on program_space
This changes remove_target_sections to be a method on program_space. This makes sense because this function manipulates data that is attached to the program space. gdb/ChangeLog 2020-10-29 Tom Tromey <tom@tromey.com> * progspace.h (struct program_space) <remove_target_sections>: Declare. * exec.c (program_space::remove_target_sections): Now a method. * exec.h (remove_target_sections): Don't declare.
Diffstat (limited to 'gdb/symfile.c')
-rw-r--r--gdb/symfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/symfile.c b/gdb/symfile.c
index 493411f..5041327 100644
--- a/gdb/symfile.c
+++ b/gdb/symfile.c
@@ -3709,7 +3709,7 @@ symfile_free_objfile (struct objfile *objfile)
{
/* Remove the target sections owned by this objfile. */
if (objfile != NULL)
- remove_target_sections ((void *) objfile);
+ current_program_space->remove_target_sections ((void *) objfile);
}
/* Wrapper around the quick_symbol_functions expand_symtabs_matching "method".