aboutsummaryrefslogtreecommitdiff
path: root/gdb/progspace.h
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:36 -0600
commitb55221abba07302964f697db7eb996ff33b26f5a (patch)
treefeb17b005f5243dc5e3463314c2627764f8f47e5 /gdb/progspace.h
parent5a36e71525564fe8767bc9f00b29dcc0fec59837 (diff)
downloadfsf-binutils-gdb-b55221abba07302964f697db7eb996ff33b26f5a.zip
fsf-binutils-gdb-b55221abba07302964f697db7eb996ff33b26f5a.tar.gz
fsf-binutils-gdb-b55221abba07302964f697db7eb996ff33b26f5a.tar.bz2
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.
Diffstat (limited to 'gdb/progspace.h')
-rw-r--r--gdb/progspace.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/gdb/progspace.h b/gdb/progspace.h
index 6dcec9c..0363403 100644
--- a/gdb/progspace.h
+++ b/gdb/progspace.h
@@ -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;