aboutsummaryrefslogtreecommitdiff
path: root/gdb/solib-dsbt.c
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/solib-dsbt.c
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/solib-dsbt.c')
-rw-r--r--gdb/solib-dsbt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/solib-dsbt.c b/gdb/solib-dsbt.c
index 57c7ab1..6f610c5 100644
--- a/gdb/solib-dsbt.c
+++ b/gdb/solib-dsbt.c
@@ -424,7 +424,7 @@ scan_dyntag (int 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;