diff options
author | Tom Tromey <tom@tromey.com> | 2020-10-29 15:04:33 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2020-10-29 15:04:39 -0600 |
commit | 2a3f84af539b4dc5473c44b0a01c1bcdfc7a1300 (patch) | |
tree | 480cc0467b823b8acc2d398f44e1125bb0edc746 /gdb/solib.c | |
parent | 004eecfdc7d9b47e8364719667c64edb22d12d44 (diff) | |
download | gdb-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/solib.c')
-rw-r--r-- | gdb/solib.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/solib.c b/gdb/solib.c index baa1801..64b2035 100644 --- a/gdb/solib.c +++ b/gdb/solib.c @@ -824,7 +824,7 @@ update_solib_list (int from_tty) /* Some targets' section tables might be referring to sections from so->abfd; remove them. */ - remove_target_sections (gdb); + current_program_space->remove_target_sections (gdb); free_so (gdb); gdb = *gdb_link; @@ -1175,7 +1175,7 @@ clear_solib (void) current_program_space->so_list = so->next; gdb::observers::solib_unloaded.notify (so); - remove_target_sections (so); + current_program_space->remove_target_sections (so); free_so (so); } @@ -1295,7 +1295,7 @@ reload_shared_libraries_1 (int from_tty) if (so->objfile && ! (so->objfile->flags & OBJF_USERLOADED) && !solib_used (so)) so->objfile->unlink (); - remove_target_sections (so); + current_program_space->remove_target_sections (so); clear_so (so); } |