summaryrefslogtreecommitdiff
path: root/gdb/corefile.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2012-06-05 21:22:30 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2012-06-05 21:22:30 +0000
commit5c0227adec1a2211941a61c7bbf7a3d47c959917 (patch)
tree09241e8cbe8fe7533c45fc14b1cf068b2f5ec589 /gdb/corefile.c
parent04015e0e5bce10e3ffea7ae908f84fa9756a80f4 (diff)
downloadgdb-5c0227adec1a2211941a61c7bbf7a3d47c959917.tar.gz
gdb/
* corefile.c (read_memory, read_stack, write_memory): Accept LEN argument as ssize_t. * gdbcore.h (read_memory, read_stack, write_memory): Likewise. * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise. * target.c (target_read_stack, target_write_memory) (target_write_raw_memory): Likewise. * target.h (target_read_stack, target_write_memory) (target_write_raw_memory): Likewise.
Diffstat (limited to 'gdb/corefile.c')
-rw-r--r--gdb/corefile.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/corefile.c b/gdb/corefile.c
index 986e4f5d16a..611cd62f2b1 100644
--- a/gdb/corefile.c
+++ b/gdb/corefile.c
@@ -213,7 +213,7 @@ memory_error (int status, CORE_ADDR memaddr)
/* Same as target_read_memory, but report an error if can't read. */
void
-read_memory (CORE_ADDR memaddr, gdb_byte *myaddr, int len)
+read_memory (CORE_ADDR memaddr, gdb_byte *myaddr, ssize_t len)
{
int status;
@@ -225,7 +225,7 @@ read_memory (CORE_ADDR memaddr, gdb_byte *myaddr, int len)
/* Same as target_read_stack, but report an error if can't read. */
void
-read_stack (CORE_ADDR memaddr, gdb_byte *myaddr, int len)
+read_stack (CORE_ADDR memaddr, gdb_byte *myaddr, ssize_t len)
{
int status;
@@ -352,7 +352,7 @@ read_memory_typed_address (CORE_ADDR addr, struct type *type)
write. */
void
write_memory (CORE_ADDR memaddr,
- const bfd_byte *myaddr, int len)
+ const bfd_byte *myaddr, ssize_t len)
{
int status;