Jeff Johnston <jjohnstn@redhat.com>
* target.c (add_target): Only set "to_xfer_partial" when NULL.
(init_dummy_target): Set "to_xfer_partial".
2003-11-06 Andrew Cagney <cagney@redhat.com>
+ Jeff Johnston <jjohnstn@redhat.com>
+
+ * target.c (add_target): Only set "to_xfer_partial" when NULL.
+ (init_dummy_target): Set "to_xfer_partial".
+
+2003-11-06 Andrew Cagney <cagney@redhat.com>
* stack.c (return_command): Warn when STRUCT_CONVENTION, and not
REGISTER_CONVENTION.
add_target (struct target_ops *t)
{
/* Provide default values for all "must have" methods. */
- t->to_xfer_partial = default_xfer_partial;
+ if (t->to_xfer_partial == NULL)
+ t->to_xfer_partial = default_xfer_partial;
if (!target_structs)
{
dummy_target.to_stratum = dummy_stratum;
dummy_target.to_find_memory_regions = dummy_find_memory_regions;
dummy_target.to_make_corefile_notes = dummy_make_corefile_notes;
+ dummy_target.to_xfer_partial = default_xfer_partial;
dummy_target.to_magic = OPS_MAGIC;
}
\f