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:36 -0600 |
commit | b55221abba07302964f697db7eb996ff33b26f5a (patch) | |
tree | feb17b005f5243dc5e3463314c2627764f8f47e5 /gdb/solib-svr4.c | |
parent | 5a36e71525564fe8767bc9f00b29dcc0fec59837 (diff) | |
download | gdb-b55221abba07302964f697db7eb996ff33b26f5a.zip gdb-b55221abba07302964f697db7eb996ff33b26f5a.tar.gz 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/solib-svr4.c')
-rw-r--r-- | gdb/solib-svr4.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/solib-svr4.c b/gdb/solib-svr4.c index a780f8d..faaba47 100644 --- a/gdb/solib-svr4.c +++ b/gdb/solib-svr4.c @@ -608,7 +608,7 @@ scan_dyntag (const int desired_dyntag, bfd *abfd, CORE_ADDR *ptr, return 0; bool found = false; - for (target_section &target_section : *current_target_sections) + for (target_section &target_section : current_program_space->target_sections) if (sect == target_section.the_bfd_section) { dyn_addr = target_section.addr; |