2003-10-22 Andrew Cagney <cagney@redhat.com>
authorAndrew Cagney <cagney@redhat.com>
Thu, 23 Oct 2003 00:13:53 +0000 (00:13 +0000)
committerAndrew Cagney <cagney@redhat.com>
Thu, 23 Oct 2003 00:13:53 +0000 (00:13 +0000)
commit0088c768bba3ae61ff9288b0edce4a5cdd8c2227
tree2fb290fd890d61293613b3eff12ff16d12712baf
parentf24c5e49d70096a9ec475d11e77b412eefd87d2a
2003-10-22  Andrew Cagney  <cagney@redhat.com>

* target.c: Include "gdb_assert.h" (target_read): Call
"target_read_partial", not "target_write_partial".
(default_read_partial, default_write_partial): New function.
(target_read_partial, target_write_partial): Simplify, assume that
there is always a read/write method.
(update_current_target, add_target): Always set "to_read_partial"
and "to_write_partial".
(target_write, target_read): Fail on a zero byte transfer.
* Makefile.in (target.o): Update dependencies.
* target.h: Update copyright date.
(target_object): Fix typo.
gdb/ChangeLog
gdb/Makefile.in
gdb/target.c
gdb/target.h