Remove current_target_sections macro

This removes the current_target_sections macro, replacing it with uses
of the appropriate member from current_program_space.

gdb/ChangeLog
2020-10-29  Tom Tromey  <tom@tromey.com>

	* progspace.h (current_target_sections): Remove macro.
	* solib-svr4.c (scan_dyntag): Update.
	* solib-dsbt.c (scan_dyntag): Update.
	* exec.c (exec_target::close): Update.
	(add_target_sections, add_target_sections_of_objfile)
	(remove_target_sections, exec_target::get_section_table)
	(exec_target::files_info, set_section_command)
	(exec_set_section_address, exec_target::has_memory)
	(exec_target::has_memory): Update.
This commit is contained in:
Tom Tromey 2020-10-29 15:04:33 -06:00
parent 5a36e71525
commit b55221abba
5 changed files with 23 additions and 15 deletions

View file

@ -365,10 +365,6 @@ struct address_space
#define symfile_objfile current_program_space->symfile_object_file
/* The set of target sections matching the sections mapped into the
current program space. */
#define current_target_sections (&current_program_space->target_sections)
/* The list of all program spaces. There's always at least one. */
extern std::vector<struct program_space *>program_spaces;