+2002-01-31 Michael Snyder <msnyder@redhat.com>
+
+ * target.c (do_xfer_memory): Add missing line to trust-readonly
+ code: check bfd SEC_READONLY flag for section.
+
2002-01-31 Andrew Cagney <ac131313@redhat.com>
* PROBLEMS: Fix tipo, 5.1->5.1.1.
secp < current_target.to_sections_end;
secp++)
{
- if (memaddr >= secp->addr && memaddr < secp->endaddr)
- return xfer_memory (memaddr, myaddr, len, 0,
- attrib, ¤t_target);
+ if (bfd_get_section_flags (secp->bfd, secp->the_bfd_section)
+ & SEC_READONLY)
+ if (memaddr >= secp->addr && memaddr < secp->endaddr)
+ return xfer_memory (memaddr, myaddr, len, 0,
+ attrib, ¤t_target);
}
}