aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2006-01-10 22:38:51 +0000
committerMark Kettenis <kettenis@gnu.org>2006-01-10 22:38:51 +0000
commitf6519ebcfefb646f0391ac7cc51f140aa9d73595 (patch)
tree03137eeb575ad40951b086839fbb9bd4f8df97e9 /gdb
parent62d732f54031c330e112363204668ee69a0f4556 (diff)
downloadgdb-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')
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/target.c13
-rw-r--r--gdb/target.h11
3 files changed, 21 insertions, 10 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 3875a41..d82f1f3 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,12 @@
2006-01-10 Mark Kettenis <kettenis@gnu.org>
+ * 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 *'.
+
* linespec.c (decode_objc): Make i1 and i2 unsigned.
(find_method): Set values.sals to NULL.
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);
diff --git a/gdb/target.h b/gdb/target.h
index 90747ff..9bb31f9 100644
--- a/gdb/target.h
+++ b/gdb/target.h
@@ -1,7 +1,8 @@
/* Interface between GDB and target environments, including files and processes
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. Written by John Gilmore.
@@ -554,11 +555,11 @@ extern int child_xfer_memory (CORE_ADDR, gdb_byte *, int, int,
of bytes actually transfered is not defined) and ERR is set to a
non-zero error indication. */
-extern int target_read_memory_partial (CORE_ADDR addr, char *buf, int len,
- int *err);
+extern int target_read_memory_partial (CORE_ADDR addr, gdb_byte *buf,
+ int len, int *err);
-extern int target_write_memory_partial (CORE_ADDR addr, char *buf, int len,
- int *err);
+extern int target_write_memory_partial (CORE_ADDR addr, gdb_byte *buf,
+ int len, int *err);
extern char *child_pid_to_exec_file (int);