Call forget_cached_source_info to clear the stale source cache
[deliverable/binutils-gdb.git] / gdb / target.c
index 599e22a724ceddbcd96deeeb5fac146505dbcbc8..78bdfeb49a4a034a7a51f1b19cd044fac5d383a7 100644 (file)
@@ -1042,9 +1042,7 @@ memory_xfer_partial_1 (struct target_ops *ops, enum target_object object,
 
       secp = target_section_by_addr (ops, memaddr);
       if (secp != NULL
-         && (bfd_get_section_flags (secp->the_bfd_section->owner,
-                                    secp->the_bfd_section)
-             & SEC_READONLY))
+         && (bfd_section_flags (secp->the_bfd_section) & SEC_READONLY))
        {
          table = target_get_section_table (ops);
          return section_table_xfer_memory_partial (readbuf, writebuf,
This page took 0.030091 seconds and 4 git commands to generate.