aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.h
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-10-23 00:13:53 +0000
committerAndrew Cagney <cagney@redhat.com>2003-10-23 00:13:53 +0000
commit0088c768bba3ae61ff9288b0edce4a5cdd8c2227 (patch)
tree2fb290fd890d61293613b3eff12ff16d12712baf /gdb/target.h
parentf24c5e49d70096a9ec475d11e77b412eefd87d2a (diff)
downloadgdb-0088c768bba3ae61ff9288b0edce4a5cdd8c2227.zip
gdb-0088c768bba3ae61ff9288b0edce4a5cdd8c2227.tar.gz
gdb-0088c768bba3ae61ff9288b0edce4a5cdd8c2227.tar.bz2
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.
Diffstat (limited to 'gdb/target.h')
-rw-r--r--gdb/target.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/gdb/target.h b/gdb/target.h
index b11647a..b4557ff 100644
--- a/gdb/target.h
+++ b/gdb/target.h
@@ -1,6 +1,8 @@
/* Interface between GDB and target environments, including files and processes
- Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
- 2000, 2001, 2002 Free Software Foundation, Inc.
+
+ Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
+ 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
+
Contributed by Cygnus Support. Written by John Gilmore.
This file is part of GDB.
@@ -221,7 +223,7 @@ enum target_object
/* AVR target specific transfer. See "avr-tdep.c" and "remote.c". */
TARGET_OBJECT_AVR,
/* Transfer up-to LEN bytes of memory starting at OFFSET. */
- TARGET_OBJECT_MEORY
+ TARGET_OBJECT_MEMORY
/* Possible future ojbects: TARGET_OJBECT_FILE, TARGET_OBJECT_PROC,
TARGET_OBJECT_AUXV, ... */
};