From 23d577b0bc272cd5bbbd38ebedd9b9ed6c9382e0 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Fri, 23 Aug 2013 14:03:25 +0000 Subject: 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 * target.c (target_read_live_memory): Change type of 'ret' local to LONGEST. --- gdb/ChangeLog | 5 +++++ gdb/target.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'gdb') 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 + * target.c (target_read_live_memory): Change type of 'ret' local + to LONGEST. + +2013-08-23 Pedro Alves + * 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. -- cgit v1.1