diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-11-06 19:56:26 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-11-06 19:56:26 +0000 |
commit | 2b7360038d3191f4fc5af7cbef8f1e064ce41b12 (patch) | |
tree | 076d97d087468fb91bcf8eaf602659523db6f611 | |
parent | 828d914e3af8782d5879fbd028c1dfa62684a464 (diff) | |
download | gdb-2b7360038d3191f4fc5af7cbef8f1e064ce41b12.tar.gz |
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".
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/target.c | 4 |
2 files changed, 9 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 257638b9058..9f36dd967fa 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,4 +1,10 @@ 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. diff --git a/gdb/target.c b/gdb/target.c index a21fd9f1d37..93087608b2d 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -220,7 +220,8 @@ void 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) { @@ -1644,6 +1645,7 @@ init_dummy_target (void) 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; } |