mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-11-25 21:19:54 +00:00
* 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 *'.
This commit is contained in:
parent
62d732f540
commit
f6519ebcfe
@ -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.
|
||||
|
||||
|
13
gdb/target.c
13
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);
|
||||
|
11
gdb/target.h
11
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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user