]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
target.c:target_read_live_memory: Fix type of local.
authorPedro Alves <palves@redhat.com>
Fri, 23 Aug 2013 14:03:25 +0000 (14:03 +0000)
committerPedro Alves <palves@redhat.com>
Fri, 23 Aug 2013 14:03:25 +0000 (14:03 +0000)
'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.

gdb/ChangeLog
gdb/target.c

index 7a19e60b235858b521aa901fb82272bbe7b8607d..9ca0e1eb3d2d909474e057a9048ed8d3c4d6de7d 100644 (file)
@@ -1,3 +1,8 @@
+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)
index f18661bd0be203b0420f846d86186bc834a157c0..3659bb90e4fe65d32913b109ea9b5c8b1e8309bc 100644 (file)
@@ -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.