diff options
Diffstat (limited to 'gdb/gcore.c')
-rw-r--r-- | gdb/gcore.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gdb/gcore.c b/gdb/gcore.c index d532652..ce5f570 100644 --- a/gdb/gcore.c +++ b/gdb/gcore.c @@ -425,13 +425,13 @@ gcore_create_callback (CORE_ADDR vaddr, unsigned long size, int read, If so, we can avoid copying its contents by clearing SEC_LOAD. */ for (objfile *objfile : current_program_space->objfiles ()) - for (obj_section *objsec : objfile->sections ()) + for (obj_section &objsec : objfile->sections ()) { bfd *abfd = objfile->obfd.get (); - asection *asec = objsec->the_bfd_section; + asection *asec = objsec.the_bfd_section; bfd_vma align = (bfd_vma) 1 << bfd_section_alignment (asec); - bfd_vma start = objsec->addr () & -align; - bfd_vma end = (objsec->endaddr () + align - 1) & -align; + bfd_vma start = objsec.addr () & -align; + bfd_vma end = (objsec.endaddr () + align - 1) & -align; /* Match if either the entire memory region lies inside the section (i.e. a mapping covering some pages of a large @@ -533,9 +533,9 @@ objfile_find_memory_regions (struct target_ops *self, /* Call callback function for each objfile section. */ for (objfile *objfile : current_program_space->objfiles ()) - for (obj_section *objsec : objfile->sections ()) + for (obj_section &objsec : objfile->sections ()) { - asection *isec = objsec->the_bfd_section; + asection *isec = objsec.the_bfd_section; flagword flags = bfd_section_flags (isec); /* Separate debug info files are irrelevant for gcore. */ @@ -547,7 +547,7 @@ objfile_find_memory_regions (struct target_ops *self, int size = bfd_section_size (isec); int ret; - ret = (*func) (objsec->addr (), size, + ret = (*func) (objsec.addr (), size, 1, /* All sections will be readable. */ (flags & SEC_READONLY) == 0, /* Writable. */ (flags & SEC_CODE) != 0, /* Executable. */ |