aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.c
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/target.c
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/target.c')
-rw-r--r--gdb/target.c2
1 files changed, 1 insertions, 1 deletions
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.