Change remove_target_sections to method on program_space
authorTom Tromey <tom@tromey.com>
Thu, 29 Oct 2020 21:04:33 +0000 (15:04 -0600)
committerTom Tromey <tom@tromey.com>
Thu, 29 Oct 2020 21:04:39 +0000 (15:04 -0600)
commit2a3f84af539b4dc5473c44b0a01c1bcdfc7a1300
tree480cc0467b823b8acc2d398f44e1125bb0edc746
parent004eecfdc7d9b47e8364719667c64edb22d12d44
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.
gdb/ChangeLog
gdb/exec.c
gdb/exec.h
gdb/progspace.h
gdb/solib.c
gdb/symfile.c