diff options
author | Mark Kettenis <kettenis@gnu.org> | 2006-01-10 22:38:51 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2006-01-10 22:38:51 +0000 |
commit | f6519ebcfefb646f0391ac7cc51f140aa9d73595 (patch) | |
tree | 03137eeb575ad40951b086839fbb9bd4f8df97e9 /gdb/target.c | |
parent | 62d732f54031c330e112363204668ee69a0f4556 (diff) | |
download | gdb-f6519ebcfefb646f0391ac7cc51f140aa9d73595.zip gdb-f6519ebcfefb646f0391ac7cc51f140aa9d73595.tar.gz gdb-f6519ebcfefb646f0391ac7cc51f140aa9d73595.tar.bz2 |
* target.h (target_read_memory_partial, target_write_memory_partial):
Change second argument to 'gdb_byte *'.
* target.c (target_xfer_memory_partial): Change third argument to
'gdb_byte *'.
(target_read_memory_partial, target_write_memory_partial): Change
second argument to 'gdb_byte *'.
Diffstat (limited to 'gdb/target.c')
-rw-r--r-- | gdb/target.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/gdb/target.c b/gdb/target.c index 70a3aec..81f8716 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -1,7 +1,8 @@ /* Select target systems and architectures at runtime for GDB. Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, - 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. + 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 + Free Software Foundation, Inc. Contributed by Cygnus Support. @@ -1179,7 +1180,7 @@ target_xfer_memory (CORE_ADDR memaddr, gdb_byte *myaddr, int len, int write) If we fail, set *ERR to a non-zero errno value, and return -1. */ static int -target_xfer_memory_partial (CORE_ADDR memaddr, char *myaddr, int len, +target_xfer_memory_partial (CORE_ADDR memaddr, gdb_byte *myaddr, int len, int write_p, int *err) { int res; @@ -1240,7 +1241,8 @@ target_xfer_memory_partial (CORE_ADDR memaddr, char *myaddr, int len, } int -target_read_memory_partial (CORE_ADDR memaddr, char *buf, int len, int *err) +target_read_memory_partial (CORE_ADDR memaddr, gdb_byte *buf, + int len, int *err) { if (target_xfer_partial_p ()) { @@ -1268,7 +1270,8 @@ target_read_memory_partial (CORE_ADDR memaddr, char *buf, int len, int *err) } int -target_write_memory_partial (CORE_ADDR memaddr, char *buf, int len, int *err) +target_write_memory_partial (CORE_ADDR memaddr, gdb_byte *buf, + int len, int *err) { if (target_xfer_partial_p ()) { @@ -1421,7 +1424,7 @@ ULONGEST get_target_memory_unsigned (struct target_ops *ops, CORE_ADDR addr, int len) { - char buf[sizeof (ULONGEST)]; + gdb_byte buf[sizeof (ULONGEST)]; gdb_assert (len <= sizeof (buf)); get_target_memory (ops, addr, buf, len); |