aboutsummaryrefslogtreecommitdiff
path: root/gdb/solib.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/solib.c')
-rw-r--r--gdb/solib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/solib.c b/gdb/solib.c
index bd6a27d..b486442 100644
--- a/gdb/solib.c
+++ b/gdb/solib.c
@@ -556,7 +556,7 @@ solib_map_sections (struct so_list *so)
so->sections = new target_section_table;
*so->sections = build_section_table (so->abfd);
- for (target_section &p : so->sections->sections)
+ for (target_section &p : *so->sections)
{
/* Relocate the section binding addresses as recorded in the shared
object's file by the base address to which the object was actually
@@ -1113,7 +1113,7 @@ bool
solib_contains_address_p (const struct so_list *const solib,
CORE_ADDR address)
{
- for (target_section &p : solib->sections->sections)
+ for (target_section &p : *solib->sections)
if (p.addr <= address && address < p.endaddr)
return true;