aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2013-08-23 14:03:25 +0000
committerPedro Alves <palves@redhat.com>2013-08-23 14:03:25 +0000
commit23d577b0bc272cd5bbbd38ebedd9b9ed6c9382e0 (patch)
tree9159e8d777d3ec04d02c26e573d57f4064d77140 /gdb
parentce0570c764fd51d695d2c7601edd3b5fa40678c2 (diff)
downloadgdb-23d577b0bc272cd5bbbd38ebedd9b9ed6c9382e0.zip
gdb-23d577b0bc272cd5bbbd38ebedd9b9ed6c9382e0.tar.gz
gdb-23d577b0bc272cd5bbbd38ebedd9b9ed6c9382e0.tar.bz2
target.c:target_read_live_memory: Fix type of local.
'ret' is used to hold the return of target_read, and pass it on. Both target_read and target_read_live_memory return LONGEST. gdb/ 2013-08-23 Pedro Alves <palves@redhat.com> * target.c (target_read_live_memory): Change type of 'ret' local to LONGEST.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/target.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 7a19e60..9ca0e1e 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2013-08-23 Pedro Alves <palves@redhat.com>
+ * target.c (target_read_live_memory): Change type of 'ret' local
+ to LONGEST.
+
+2013-08-23 Pedro Alves <palves@redhat.com>
+
* remote.c (remote_write_bytes_aux, remote_write_bytes)
(remote_read_bytes): Change return type to LONGEST, and adjust to
return a target_xfer_error on error.
diff --git a/gdb/target.c b/gdb/target.c
index f18661b..3659bb90 100644
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -1364,7 +1364,7 @@ static LONGEST
target_read_live_memory (enum target_object object,
ULONGEST memaddr, gdb_byte *myaddr, LONGEST len)
{
- int ret;
+ LONGEST ret;
struct cleanup *cleanup;
/* Switch momentarily out of tfind mode so to access live memory.