From f6519ebcfefb646f0391ac7cc51f140aa9d73595 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Tue, 10 Jan 2006 22:38:51 +0000 Subject: [PATCH] * 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 *'. --- gdb/ChangeLog | 7 +++++++ gdb/target.c | 13 ++++++++----- gdb/target.h | 11 ++++++----- 3 files changed, 21 insertions(+), 10 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3875a4102f3..d82f1f30242 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,12 @@ 2006-01-10 Mark Kettenis + * 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 70a3aecbe71..81f8716d353 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 90747ffac7f..9bb31f984ab 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); -- 2.30.2