diff options
author | Pedro Alves <palves@redhat.com> | 2013-08-23 14:03:24 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2013-08-23 14:03:24 +0000 |
commit | eb1355aeff5bbb06236e2a609d2537528c7a2c52 (patch) | |
tree | dd58b81daedba8dd1f2a720854dc495f81f8fa7e /gdb/target.c | |
parent | 8a46681423f5a55e569d4d913c479862495210c5 (diff) | |
download | gdb-eb1355aeff5bbb06236e2a609d2537528c7a2c52.tar.gz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/target.c b/gdb/target.c index f18661bd0be..3659bb90e4f 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. |