aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.h
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2012-06-05 21:22:31 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2012-06-05 21:22:31 +0000
commit45aa465930d4e197d35a856df57ba2720ffa036d (patch)
treecaec6b7fff4ae083836c56c8f1d5f5d70c8ac580 /gdb/target.h
parent1b162304d12fb239357849951093adf48609265a (diff)
downloadgdb-45aa465930d4e197d35a856df57ba2720ffa036d.zip
gdb-45aa465930d4e197d35a856df57ba2720ffa036d.tar.gz
gdb-45aa465930d4e197d35a856df57ba2720ffa036d.tar.bz2
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/target.h')
-rw-r--r--gdb/target.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/target.h b/gdb/target.h
index de96bcd..233d355 100644
--- a/gdb/target.h
+++ b/gdb/target.h
@@ -999,13 +999,13 @@ extern int target_read_string (CORE_ADDR, char **, int, int *);
extern int target_read_memory (CORE_ADDR memaddr, gdb_byte *myaddr,
ssize_t len);
-extern int target_read_stack (CORE_ADDR memaddr, gdb_byte *myaddr, int len);
+extern int target_read_stack (CORE_ADDR memaddr, gdb_byte *myaddr, ssize_t len);
extern int target_write_memory (CORE_ADDR memaddr, const gdb_byte *myaddr,
- int len);
+ ssize_t len);
extern int target_write_raw_memory (CORE_ADDR memaddr, const gdb_byte *myaddr,
- int len);
+ ssize_t len);
/* Fetches the target's memory map. If one is found it is sorted
and returned, after some consistency checking. Otherwise, NULL